Skip to content

Commit 1e4730c

Browse files
committed
Make regression test output locale-independent
In some locales, letters sort before numbers, so change the object naming to not depend on that. Introduced by commit 7c079d7.
1 parent ebfe20d commit 1e4730c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/test/regress/expected/create_table.out

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -460,20 +460,20 @@ DROP TABLE partitioned, partitioned2;
460460
CREATE TABLE list_parted (
461461
a int
462462
) PARTITION BY LIST (a);
463-
CREATE TABLE part_1 PARTITION OF list_parted FOR VALUES IN ('1');
464-
CREATE TABLE part_2 PARTITION OF list_parted FOR VALUES IN (2);
465-
CREATE TABLE part_3 PARTITION OF list_parted FOR VALUES IN ((2+1));
463+
CREATE TABLE part_p1 PARTITION OF list_parted FOR VALUES IN ('1');
464+
CREATE TABLE part_p2 PARTITION OF list_parted FOR VALUES IN (2);
465+
CREATE TABLE part_p3 PARTITION OF list_parted FOR VALUES IN ((2+1));
466466
CREATE TABLE part_null PARTITION OF list_parted FOR VALUES IN (null);
467467
\d+ list_parted
468468
Partitioned table "public.list_parted"
469469
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description
470470
--------+---------+-----------+----------+---------+---------+--------------+-------------
471471
a | integer | | | | plain | |
472472
Partition key: LIST (a)
473-
Partitions: part_1 FOR VALUES IN (1),
474-
part_2 FOR VALUES IN (2),
475-
part_3 FOR VALUES IN (3),
476-
part_null FOR VALUES IN (NULL)
473+
Partitions: part_null FOR VALUES IN (NULL),
474+
part_p1 FOR VALUES IN (1),
475+
part_p2 FOR VALUES IN (2),
476+
part_p3 FOR VALUES IN (3)
477477

478478
-- forbidden expressions for partition bound
479479
CREATE TABLE part_bogus_expr_fail PARTITION OF list_parted FOR VALUES IN (somename);

src/test/regress/sql/create_table.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,9 @@ DROP TABLE partitioned, partitioned2;
436436
CREATE TABLE list_parted (
437437
a int
438438
) PARTITION BY LIST (a);
439-
CREATE TABLE part_1 PARTITION OF list_parted FOR VALUES IN ('1');
440-
CREATE TABLE part_2 PARTITION OF list_parted FOR VALUES IN (2);
441-
CREATE TABLE part_3 PARTITION OF list_parted FOR VALUES IN ((2+1));
439+
CREATE TABLE part_p1 PARTITION OF list_parted FOR VALUES IN ('1');
440+
CREATE TABLE part_p2 PARTITION OF list_parted FOR VALUES IN (2);
441+
CREATE TABLE part_p3 PARTITION OF list_parted FOR VALUES IN ((2+1));
442442
CREATE TABLE part_null PARTITION OF list_parted FOR VALUES IN (null);
443443
\d+ list_parted
444444

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy