Skip to content

Commit bc5c6e2

Browse files
author
Rafa de la Torre
committed
Fix for collation errors when importing catallog tables
This fixes #393 by avoiding collation options. The affected function is only used from diagnostics, and aside from `pg_extension` only meant to import other catallog tables for internal diagnostics (`pg_catalog` and `pg_settings`) so it shall be pretty safe.
1 parent 076cacc commit bc5c6e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts-available/CDB_FederatedServerDiagnostics.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ BEGIN
1616
WHERE relnamespace = (SELECT oid FROM pg_namespace WHERE nspname = local_schema)
1717
AND relname = remote_table
1818
) THEN
19-
EXECUTE format('IMPORT FOREIGN SCHEMA %I LIMIT TO (%I) FROM SERVER %I INTO %I',
19+
EXECUTE format(E'IMPORT FOREIGN SCHEMA %I LIMIT TO (%I) FROM SERVER %I INTO %I OPTIONS (import_collate \'false\')',
2020
remote_schema, remote_table, server_internal, local_schema);
2121
END IF;
2222
END

0 commit comments

Comments
 (0)