Skip to content

Commit 0981068

Browse files
committed
fix mismatch in sorts due to differing collation
1 parent 317068a commit 0981068

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/build-psql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
image: postgres:17
1515
env:
1616
POSTGRES_PASSWORD: postgres
17+
# Force byte-order (C) collation so string ordering matches DuckDB's
18+
# binary sort.
19+
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --lc-collate=C --lc-ctype=C"
1720
options: >-
1821
--health-cmd pg_isready
1922
--health-interval 10s

.github/workflows/concepts-psql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
image: postgres:17
1616
env:
1717
POSTGRES_PASSWORD: postgres
18+
# Force byte-order (C) collation so string ordering matches DuckDB's
19+
# binary sort.
20+
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --lc-collate=C --lc-ctype=C"
1821
options: >-
1922
--health-cmd pg_isready
2023
--health-interval 10s

.github/workflows/equivalence.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
image: postgres:17
1919
env:
2020
POSTGRES_PASSWORD: postgres
21+
# Force byte-order (C) collation so string ordering matches DuckDB's
22+
# binary sort.
23+
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --lc-collate=C --lc-ctype=C"
2124
options: >-
2225
--health-cmd pg_isready
2326
--health-interval 10s

0 commit comments

Comments
 (0)