Stabilize create_table regression test.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 28 Sep 2020 18:48:01 +0000 (14:48 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 28 Sep 2020 18:48:01 +0000 (14:48 -0400)
Adding \d+ to the test in commit 2dfa3fea8 was ill-advised,
because the partitions' names are such that their sort order
is locale dependent.  We could rename them to avoid that,
but it doesn't seem worth the trouble; just take \d+ out again.

Per buildfarm.

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

index 45f4a73447851536f588fe4caaa5d4f5f1e9b907..1fc266dd65cbe153bd7f34d08206f20aa5257530 100644 (file)
@@ -1042,17 +1042,6 @@ create table test_part_coll2 partition of test_part_coll_posix for values from (
 create table test_part_coll_cast partition of test_part_coll_posix for values from (name 'm' collate "C") to ('s');
 -- ok; partition collation silently overrides the default collation of type 'name'
 create table test_part_coll_cast2 partition of test_part_coll_posix for values from (name 's') to ('z');
-\d+ test_part_coll_posix
-                    Partitioned table "public.test_part_coll_posix"
- Column | Type | Collation | Nullable | Default | Storage  | Stats target | Description 
---------+------+-----------+----------+---------+----------+--------------+-------------
- a      | text |           |          |         | extended |              | 
-Partition key: RANGE (a COLLATE "POSIX")
-Partitions: test_part_coll FOR VALUES FROM ('a') TO ('g'),
-            test_part_coll2 FOR VALUES FROM ('g') TO ('m'),
-            test_part_coll_cast FOR VALUES FROM ('m') TO ('s'),
-            test_part_coll_cast2 FOR VALUES FROM ('s') TO ('z')
-
 drop table test_part_coll_posix;
 -- Partition bound in describe output
 \d+ part_b
index 22602aae5d2a8a57216182aa1adf27991a46eb4a..cee822aa8b6eeb6909194ee587c6490310df93b3 100644 (file)
@@ -833,8 +833,6 @@ create table test_part_coll_cast partition of test_part_coll_posix for values fr
 -- ok; partition collation silently overrides the default collation of type 'name'
 create table test_part_coll_cast2 partition of test_part_coll_posix for values from (name 's') to ('z');
 
-\d+ test_part_coll_posix
-
 drop table test_part_coll_posix;
 
 -- Partition bound in describe output