diff --git a/server/src/db/engine/postgres/pg-tools.ts b/server/src/db/engine/postgres/pg-tools.ts index dd94087cf..b547c8075 100644 --- a/server/src/db/engine/postgres/pg-tools.ts +++ b/server/src/db/engine/postgres/pg-tools.ts @@ -186,7 +186,7 @@ async function pgCurrentSchema(url: string, binDir: string | undefined): Promise '--no-psqlrc', '--no-align', '--tuples-only', - "--command=select current_schema() || E'\\t' || quote_ident(current_schema())", + "--command=select concat_ws(E'\\t', current_schema(), quote_ident(current_schema()))", ], pgConnectionEnv(url), );