Fix underspecified sort order in test query
authorAlvaro Herrera <[email protected]>
Fri, 7 Apr 2023 18:19:16 +0000 (20:19 +0200)
committerAlvaro Herrera <[email protected]>
Fri, 7 Apr 2023 18:30:04 +0000 (20:30 +0200)
Fail in e056c557aef4.

src/test/regress/expected/inherit.out
src/test/regress/sql/inherit.sql

index eed4b91ae441776fede02948b79f596cf5ac1981..9c463732b6dcc82d5fd914f0e087eae9ad97f5d8 100644 (file)
@@ -2218,15 +2218,15 @@ select conrelid::regclass, contype, conname,
  from pg_constraint where contype = 'n' and
  conrelid::regclass in ('inh_p1', 'inh_p2', 'inh_p3', 'inh_p4',
    'inh_multiparent')
- order by 1, 2;
+ order by conrelid::regclass::text, conname;
     conrelid     | contype |      conname       | attname | coninhcount | conislocal 
 -----------------+---------+--------------------+---------+-------------+------------
+ inh_multiparent | n       | inh_p1_f1_not_null | f1      |           3 | f
+ inh_multiparent | n       | inh_p4_f3_not_null | f3      |           1 | f
  inh_p1          | n       | inh_p1_f1_not_null | f1      |           0 | t
  inh_p2          | n       | inh_p2_f1_not_null | f1      |           0 | t
  inh_p4          | n       | inh_p4_f1_not_null | f1      |           0 | t
  inh_p4          | n       | inh_p4_f3_not_null | f3      |           0 | t
- inh_multiparent | n       | inh_p1_f1_not_null | f1      |           3 | f
- inh_multiparent | n       | inh_p4_f3_not_null | f3      |           1 | f
 (6 rows)
 
 create table inh_multiparent2 (a int not null, f1 int) inherits(inh_p3, inh_multiparent);
@@ -2237,7 +2237,7 @@ select conrelid::regclass, contype, conname,
   coninhcount, conislocal
  from pg_constraint where contype = 'n' and
  conrelid::regclass in ('inh_p3', 'inh_multiparent', 'inh_multiparent2')
- order by 1, 2;
+ order by conrelid::regclass::text, conname;
      conrelid     | contype |           conname           | attname | coninhcount | conislocal 
 ------------------+---------+-----------------------------+---------+-------------+------------
  inh_multiparent  | n       | inh_p1_f1_not_null          | f1      |           3 | f
index 3ef7220051d7ae45a0a830f6a2f2ccf56be81e6b..b2bd530cb4d8f8ff676112266661ea42d298ec63 100644 (file)
@@ -875,7 +875,7 @@ select conrelid::regclass, contype, conname,
  from pg_constraint where contype = 'n' and
  conrelid::regclass in ('inh_p1', 'inh_p2', 'inh_p3', 'inh_p4',
    'inh_multiparent')
- order by 1, 2;
+ order by conrelid::regclass::text, conname;
 
 create table inh_multiparent2 (a int not null, f1 int) inherits(inh_p3, inh_multiparent);
 select conrelid::regclass, contype, conname,
@@ -883,7 +883,7 @@ select conrelid::regclass, contype, conname,
   coninhcount, conislocal
  from pg_constraint where contype = 'n' and
  conrelid::regclass in ('inh_p3', 'inh_multiparent', 'inh_multiparent2')
- order by 1, 2;
+ order by conrelid::regclass::text, conname;
 
 drop table inh_p1, inh_p2, inh_p3, inh_p4 cascade;