Skip to content

Commit 71efd34

Browse files
committed
Replace references to COLLATE "en_US" with COLLATE "C".
Commit f0e4475 is turning the buildfarm red; let's try something hopefully more portable.
1 parent f0e4475 commit 71efd34

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/test/regress/expected/alter_table.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3034,7 +3034,7 @@ DROP TABLE unparted, fail_part;
30343034
-- check that partition bound is compatible
30353035
CREATE TABLE list_parted (
30363036
a int NOT NULL,
3037-
b char(2) COLLATE "en_US",
3037+
b char(2) COLLATE "C",
30383038
CONSTRAINT check_a CHECK (a > 0)
30393039
) PARTITION BY LIST (a);
30403040
CREATE TABLE fail_part (LIKE list_parted);
@@ -3117,7 +3117,7 @@ ERROR: child table "fail_part" has different collation for column "b"
31173117
DROP TABLE fail_part;
31183118
-- check that the table being attached has all constraints of the parent
31193119
CREATE TABLE fail_part (
3120-
b char(2) COLLATE "en_US",
3120+
b char(2) COLLATE "C",
31213121
a int NOT NULL
31223122
);
31233123
ALTER TABLE list_parted ATTACH PARTITION fail_part FOR VALUES IN (1);
@@ -3130,7 +3130,7 @@ DROP TABLE fail_part;
31303130
-- check the attributes and constraints after partition is attached
31313131
CREATE TABLE part_1 (
31323132
a int NOT NULL,
3133-
b char(2) COLLATE "en_US",
3133+
b char(2) COLLATE "C",
31343134
CONSTRAINT check_a CHECK (a > 0)
31353135
);
31363136
ALTER TABLE list_parted ATTACH PARTITION part_1 FOR VALUES IN (1);

src/test/regress/expected/create_table.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ CREATE TABLE partitioned (
391391
b int,
392392
c text,
393393
d text
394-
) PARTITION BY RANGE (a oid_ops, plusone(b), c collate "default", d collate "en_US");
394+
) PARTITION BY RANGE (a oid_ops, plusone(b), c collate "default", d collate "C");
395395
-- check relkind
396396
SELECT relkind FROM pg_class WHERE relname = 'partitioned';
397397
relkind
@@ -429,7 +429,7 @@ ERROR: cannot inherit from partitioned table "partitioned2"
429429
b | integer | | |
430430
c | text | | not null |
431431
d | text | | not null |
432-
Partition key: RANGE (a oid_ops, plusone(b), c, d COLLATE "en_US")
432+
Partition key: RANGE (a oid_ops, plusone(b), c, d COLLATE "C")
433433

434434
\d partitioned2
435435
Table "public.partitioned2"

src/test/regress/sql/alter_table.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,7 +1923,7 @@ DROP TABLE unparted, fail_part;
19231923
-- check that partition bound is compatible
19241924
CREATE TABLE list_parted (
19251925
a int NOT NULL,
1926-
b char(2) COLLATE "en_US",
1926+
b char(2) COLLATE "C",
19271927
CONSTRAINT check_a CHECK (a > 0)
19281928
) PARTITION BY LIST (a);
19291929
CREATE TABLE fail_part (LIKE list_parted);
@@ -1999,7 +1999,7 @@ DROP TABLE fail_part;
19991999

20002000
-- check that the table being attached has all constraints of the parent
20012001
CREATE TABLE fail_part (
2002-
b char(2) COLLATE "en_US",
2002+
b char(2) COLLATE "C",
20032003
a int NOT NULL
20042004
);
20052005
ALTER TABLE list_parted ATTACH PARTITION fail_part FOR VALUES IN (1);
@@ -2012,7 +2012,7 @@ DROP TABLE fail_part;
20122012
-- check the attributes and constraints after partition is attached
20132013
CREATE TABLE part_1 (
20142014
a int NOT NULL,
2015-
b char(2) COLLATE "en_US",
2015+
b char(2) COLLATE "C",
20162016
CONSTRAINT check_a CHECK (a > 0)
20172017
);
20182018
ALTER TABLE list_parted ATTACH PARTITION part_1 FOR VALUES IN (1);

src/test/regress/sql/create_table.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ CREATE TABLE partitioned (
397397
b int,
398398
c text,
399399
d text
400-
) PARTITION BY RANGE (a oid_ops, plusone(b), c collate "default", d collate "en_US");
400+
) PARTITION BY RANGE (a oid_ops, plusone(b), c collate "default", d collate "C");
401401

402402
-- check relkind
403403
SELECT relkind FROM pg_class WHERE relname = 'partitioned';

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