Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
postgres_fdw: Remove useless DO block in test
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 16 Sep 2022 13:57:34 +0000 (15:57 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 16 Sep 2022 13:57:34 +0000 (15:57 +0200)
Discussion: https://www.postgresql.org/message-id/flat/b1f9f399-3a1a-b554-283f-4ae7f34608e2@enterprisedb.com

contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/sql/postgres_fdw.sql

index ad0910e8672c1f0a389ea4d4de05a6eb7223ccd2..2e4e82a94f1df82ee5278bfcc272203e148d972c 100644 (file)
@@ -9699,15 +9699,9 @@ ERROR:  password is required
 DETAIL:  Non-superusers must provide a password in the user mapping.
 -- If we add a password to the connstr it'll fail, because we don't allow passwords
 -- in connstrs only in user mappings.
-DO $d$
-    BEGIN
-        EXECUTE $$ALTER SERVER loopback_nopw OPTIONS (ADD password 'dummypw')$$;
-    END;
-$d$;
+ALTER SERVER loopback_nopw OPTIONS (ADD password 'dummypw');
 ERROR:  invalid option "password"
 HINT:  Perhaps you meant the option "passfile".
-CONTEXT:  SQL statement "ALTER SERVER loopback_nopw OPTIONS (ADD password 'dummypw')"
-PL/pgSQL function inline_code_block line 3 at EXECUTE
 -- If we add a password for our user mapping instead, we should get a different
 -- error because the password wasn't actually *used* when we run with trust auth.
 --
index 9a493502f1ee5c4eca71e5e801a8f3fad72b8fd7..e48ccd286bbdd771bbe6c97e29938a6a87654dcd 100644 (file)
@@ -2899,11 +2899,7 @@ SELECT 1 FROM ft1_nopw LIMIT 1;
 -- If we add a password to the connstr it'll fail, because we don't allow passwords
 -- in connstrs only in user mappings.
 
-DO $d$
-    BEGIN
-        EXECUTE $$ALTER SERVER loopback_nopw OPTIONS (ADD password 'dummypw')$$;
-    END;
-$d$;
+ALTER SERVER loopback_nopw OPTIONS (ADD password 'dummypw');
 
 -- If we add a password for our user mapping instead, we should get a different
 -- error because the password wasn't actually *used* when we run with trust auth.