fix(server): schema-qualify the table the move asks Postgres for its sequence

Server Postgres 18 3/3 was red on dev: PGMOVENUL-007 failed with relation "information_schema_catalog_name" does not exist. readTargetSchema called pg_get_serial_sequence(format('%I', table_name), ...) over information_schema.columns, and Postgres does not promise to apply the table_schema filter first, so the call could see rows of information_schema itself, whose bare names do not resolve on the search path. The name now carries its schema, so the call answers for every row whatever the plan. The fake Postgres of the move tests matches the new text.
This commit is contained in:
Maurice
2026-11-21 11:30:06 +01:00
parent 6861687b1f
commit 2f7b8357ce
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ export class FakePostgres {
})),
]);
}
if (sql.includes("pg_get_serial_sequence(format('%I'")) {
if (sql.includes("pg_get_serial_sequence(format('%I.%I'")) {
return this.schema.flatMap((table) =>
(table.serial ?? []).map((column) => ({
table_name: table.name,