Skip to content

Commit 09963ce

Browse files
Go back to suppressing foreign_data DETAIL test output.
This is almost a straight revert of commit fff518d, which itself was a revert of 7d3bf73. It turns out that commit 8aa9dd7, which sorted dependent objects before deletion in DROP OWNED BY, was not sufficient to make all remaining unstable DETAIL output stable. Unstable DETAIL output from DROP ROLE was not affected, because that happens to use a different code path. It doesn't seem worthwhile to fix the other code path at this time. Discussion: https://postgr.es/m/6226.1553274783@sss.pgh.pa.us
1 parent c8151e6 commit 09963ce

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/test/regress/expected/foreign_data.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,11 @@ GRANT USAGE ON FOREIGN DATA WRAPPER foo TO regress_test_indirect;
439439
SET ROLE regress_test_role;
440440
ALTER SERVER s1 OWNER TO regress_test_indirect;
441441
RESET ROLE;
442+
-- We use terse mode to avoid ordering issues in DROP ROLE detail output
443+
\set VERBOSITY terse
442444
DROP ROLE regress_test_indirect; -- ERROR
443445
ERROR: role "regress_test_indirect" cannot be dropped because some objects depend on it
444-
DETAIL: privileges for foreign-data wrapper foo
445-
owner of server s1
446+
\set VERBOSITY default
446447
\des+
447448
List of foreign servers
448449
Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW options | Description
@@ -1203,7 +1204,6 @@ ERROR: permission denied for foreign-data wrapper foo
12031204
ALTER SERVER s9 VERSION '1.1';
12041205
GRANT USAGE ON FOREIGN SERVER s9 TO regress_test_role;
12051206
CREATE USER MAPPING FOR current_user SERVER s9;
1206-
-- We use terse mode to avoid ordering issues in cascade detail output.
12071207
\set VERBOSITY terse
12081208
DROP SERVER s9 CASCADE;
12091209
NOTICE: drop cascades to 2 other objects

src/test/regress/sql/foreign_data.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ GRANT USAGE ON FOREIGN DATA WRAPPER foo TO regress_test_indirect;
199199
SET ROLE regress_test_role;
200200
ALTER SERVER s1 OWNER TO regress_test_indirect;
201201
RESET ROLE;
202+
-- We use terse mode to avoid ordering issues in DROP ROLE detail output
203+
\set VERBOSITY terse
202204
DROP ROLE regress_test_indirect; -- ERROR
205+
\set VERBOSITY default
203206
\des+
204207

205208
ALTER SERVER s8 RENAME to s8new;
@@ -501,7 +504,6 @@ CREATE SERVER s10 FOREIGN DATA WRAPPER foo; -- ERROR
501504
ALTER SERVER s9 VERSION '1.1';
502505
GRANT USAGE ON FOREIGN SERVER s9 TO regress_test_role;
503506
CREATE USER MAPPING FOR current_user SERVER s9;
504-
-- We use terse mode to avoid ordering issues in cascade detail output.
505507
\set VERBOSITY terse
506508
DROP SERVER s9 CASCADE;
507509
\set VERBOSITY default

0 commit comments

Comments
 (0)