Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg17 compatibility #70

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions powa--5.0.0dev.sql
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ INSERT INTO @[email protected]_catalog_src_queries
true AS collisdeterministic,
pg_encoding_to_char(collencoding) AS collencoding, collcollate,
collctype,
NULL::text AS colliculocale, NULL::text AS collicurules,
NULL::text AS colllocale, NULL::text AS collicurules,
NULL::text AS collversion
FROM pg_catalog.pg_collation$$),
-- pg_collation pg10+, collprovider and collversion added
Expand All @@ -578,7 +578,7 @@ INSERT INTO @[email protected]_catalog_src_queries
true AS collisdeterministic,
pg_encoding_to_char(collencoding) AS collencoding, collcollate,
collctype,
NULL::text AS colliculocale, NULL::text AS collicurules,
NULL::text AS colllocale, NULL::text AS collicurules,
collversion
FROM pg_catalog.pg_collation$$),
-- pg_collation pg12+, collisdeterministic added
Expand All @@ -587,7 +587,7 @@ INSERT INTO @[email protected]_catalog_src_queries
collisdeterministic,
pg_encoding_to_char(collencoding) AS collencoding, collcollate,
collctype,
NULL::text AS colliculocale, NULL::text AS collicurules,
NULL::text AS colllocale, NULL::text AS collicurules,
collversion
FROM pg_catalog.pg_collation$$),
-- pg_collation pg15+, colliculocale added
Expand All @@ -596,7 +596,7 @@ INSERT INTO @[email protected]_catalog_src_queries
collisdeterministic,
pg_encoding_to_char(collencoding) AS collencoding, collcollate,
collctype,
colliculocale, NULL::text AS collicurules,
colliculocale AS colllocale, NULL::text AS collicurules,
collversion
FROM pg_catalog.pg_collation$$),
-- pg_collation pg16+, collicurules added
Expand All @@ -605,7 +605,16 @@ INSERT INTO @[email protected]_catalog_src_queries
collisdeterministic,
pg_encoding_to_char(collencoding) AS collencoding, collcollate,
collctype,
colliculocale, collicurules,
colliculocale AS colllocale, collicurules,
collversion
FROM pg_catalog.pg_collation$$),
-- pg_collation pg16+, colliculocale renamed to colllocale
('pg_collation', 170000,
$$SELECT oid, collname::text AS collname, collnamespace, collprovider,
collisdeterministic,
pg_encoding_to_char(collencoding) AS collencoding, collcollate,
collctype,
colllocale, collicurules,
collversion
FROM pg_catalog.pg_collation$$),
-- pg_proc
Expand Down Expand Up @@ -834,7 +843,7 @@ CREATE TABLE @[email protected]_catalog_collation (
collencoding text NOT NULL,
collcollate text,
collctype text,
colliculocale text,
colllocale text,
collicurules text,
collversion text,
PRIMARY KEY (srvid, dbid, oid),
Expand Down