|
|
|
@ -329,7 +329,6 @@ CREATE SERVER s6 VERSION '16.0' FOREIGN DATA WRAPPER foo OPTIONS (host 'a', dbna |
|
|
|
|
CREATE SERVER s7 TYPE 'oracle' VERSION '17.0' FOREIGN DATA WRAPPER foo OPTIONS (host 'a', dbname 'b'); |
|
|
|
|
CREATE SERVER s8 FOREIGN DATA WRAPPER postgresql OPTIONS (foo '1'); -- ERROR |
|
|
|
|
ERROR: invalid option "foo" |
|
|
|
|
HINT: Valid options in this context are: authtype, service, connect_timeout, dbname, host, hostaddr, port, tty, options, requiressl, sslmode, gsslib |
|
|
|
|
CREATE SERVER s8 FOREIGN DATA WRAPPER postgresql OPTIONS (host 'localhost', dbname 's8db'); |
|
|
|
|
\des+ |
|
|
|
|
List of foreign servers |
|
|
|
@ -440,7 +439,6 @@ ERROR: permission denied for foreign-data wrapper foo |
|
|
|
|
RESET ROLE; |
|
|
|
|
ALTER SERVER s8 OPTIONS (foo '1'); -- ERROR option validation |
|
|
|
|
ERROR: invalid option "foo" |
|
|
|
|
HINT: Valid options in this context are: authtype, service, connect_timeout, dbname, host, hostaddr, port, tty, options, requiressl, sslmode, gsslib |
|
|
|
|
ALTER SERVER s8 OPTIONS (connect_timeout '30', SET dbname 'db1', DROP host); |
|
|
|
|
SET ROLE regress_test_role; |
|
|
|
|
ALTER SERVER s1 OWNER TO regress_test_indirect; -- ERROR |
|
|
|
@ -597,7 +595,7 @@ ERROR: user mapping for "regress_foreign_data_user" already exists for server " |
|
|
|
|
CREATE USER MAPPING FOR public SERVER s4 OPTIONS ("this mapping" 'is public'); |
|
|
|
|
CREATE USER MAPPING FOR user SERVER s8 OPTIONS (username 'test', password 'secret'); -- ERROR |
|
|
|
|
ERROR: invalid option "username" |
|
|
|
|
HINT: Valid options in this context are: user, password |
|
|
|
|
HINT: Perhaps you meant the option "user". |
|
|
|
|
CREATE USER MAPPING FOR user SERVER s8 OPTIONS (user 'test', password 'secret'); |
|
|
|
|
ALTER SERVER s5 OWNER TO regress_test_role; |
|
|
|
|
ALTER SERVER s6 OWNER TO regress_test_indirect; |
|
|
|
@ -636,7 +634,7 @@ ALTER USER MAPPING FOR public SERVER s5 OPTIONS (gotcha 'true'); -- E |
|
|
|
|
ERROR: user mapping for "public" does not exist for server "s5" |
|
|
|
|
ALTER USER MAPPING FOR current_user SERVER s8 OPTIONS (username 'test'); -- ERROR |
|
|
|
|
ERROR: invalid option "username" |
|
|
|
|
HINT: Valid options in this context are: user, password |
|
|
|
|
HINT: Perhaps you meant the option "user". |
|
|
|
|
ALTER USER MAPPING FOR current_user SERVER s8 OPTIONS (DROP user, SET password 'public'); |
|
|
|
|
SET ROLE regress_test_role; |
|
|
|
|
ALTER USER MAPPING FOR current_user SERVER s5 OPTIONS (ADD modified '1'); |
|
|
|
|