Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2026-04-30 9f2ef60949ced4fab4d077a7e1c6d913f3620c9b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- Tests for the hint table
LOAD 'pg_hint_plan';
-- Attempting to use the hint table without the extension created
-- emits a WARNING.
SET pg_hint_plan.enable_hint_table TO on;
SELECT 1;
WARNING:  cannot use the hint table
HINT:  Run "CREATE EXTENSION pg_hint_plan" to create the hint table.
 ?column? 
----------
        1
(1 row)
 
SET pg_hint_plan.enable_hint_table TO off;
CREATE EXTENSION pg_hint_plan;
SET pg_hint_plan.enable_hint_table TO on;
SELECT 1;
 ?column? 
----------
        1
(1 row)
 
SET pg_hint_plan.enable_hint_table TO off;
DROP EXTENSION pg_hint_plan;