You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
In the test query I added for ALTER TABLE retaining comments, the order ofthe result rows was not stable, and varied across systems. Add an ORDER BYto make the order predictable. This should fix the buildfarm failures.
Copy file name to clipboardExpand all lines: src/test/regress/expected/alter_table.out
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2418,14 +2418,14 @@ SELECT col_description('comment_test'::regclass, 1) as comment;
2418
2418
Column 'id' on comment_test
2419
2419
(1 row)
2420
2420
2421
-
SELECT indexrelid::regclass as index, obj_description(indexrelid, 'pg_class') as comment FROM pg_index where indrelid = 'comment_test'::regclass;
2421
+
SELECT indexrelid::regclass::text as index, obj_description(indexrelid, 'pg_class') as comment FROM pg_index where indrelid = 'comment_test'::regclass ORDER BY 1, 2;
comment_test_pk | Index backing the PRIMARY KEY of comment_test
2426
2426
(2 rows)
2427
2427
2428
-
SELECT conname as constraint, obj_description(oid, 'pg_constraint') as comment FROM pg_constraint where conrelid = 'comment_test'::regclass;
2428
+
SELECT conname as constraint, obj_description(oid, 'pg_constraint') as comment FROM pg_constraint where conrelid = 'comment_test'::regclass ORDER BY 1, 2;
comment_test_pk | PRIMARY KEY constraint of comment_test
@@ -2449,18 +2449,18 @@ SELECT col_description('comment_test'::regclass, 1) as comment;
2449
2449
Column 'id' on comment_test
2450
2450
(1 row)
2451
2451
2452
-
SELECT indexrelid::regclass as index, obj_description(indexrelid, 'pg_class') as comment FROM pg_index where indrelid = 'comment_test'::regclass;
2452
+
SELECT indexrelid::regclass::text as index, obj_description(indexrelid, 'pg_class') as comment FROM pg_index where indrelid = 'comment_test'::regclass ORDER BY 1, 2;
comment_test_pk | Index backing the PRIMARY KEY of comment_test
2456
2455
comment_test_index | Simple index on comment_test
2456
+
comment_test_pk | Index backing the PRIMARY KEY of comment_test
2457
2457
(2 rows)
2458
2458
2459
-
SELECT conname as constraint, obj_description(oid, 'pg_constraint') as comment FROM pg_constraint where conrelid = 'comment_test'::regclass;
2459
+
SELECT conname as constraint, obj_description(oid, 'pg_constraint') as comment FROM pg_constraint where conrelid = 'comment_test'::regclass ORDER BY 1, 2;