From 95d0a65a8f8a4b5e86eb597a0261541073b982d2 Mon Sep 17 00:00:00 2001 From: Xetera Date: Tue, 20 Jan 2026 19:24:14 +0300 Subject: [PATCH 1/2] fix: disable FK constraints during pg_restore --- src/sync/schema-link.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sync/schema-link.ts b/src/sync/schema-link.ts index eab2bfa..26caa33 100644 --- a/src/sync/schema-link.ts +++ b/src/sync/schema-link.ts @@ -276,6 +276,7 @@ export class RestoreCommand { "--no-owner", "--no-acl", "--verbose", + "--disable-triggers", ...RestoreCommand.formatFlags(), "--dbname", connectable.toString(), From efa7a7a7a152c2724a4a8e2028abb8f46485d314 Mon Sep 17 00:00:00 2001 From: Xetera Date: Tue, 20 Jan 2026 19:27:44 +0300 Subject: [PATCH 2/2] fix: build postgres with uuid-ossp configuration --- pg14.Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pg14.Dockerfile b/pg14.Dockerfile index f65833a..2b83951 100644 --- a/pg14.Dockerfile +++ b/pg14.Dockerfile @@ -18,7 +18,9 @@ RUN apk add --no-cache \ cmake \ openssl-dev \ krb5-dev \ - # required for timescaledb + # needed for the uuid-ossp extension + ossp-uuid-dev \ + # required for timescaledb linux-headers RUN git clone --depth 1 --branch ${PG_BRANCH} https://github.com/postgres/postgres.git /postgres @@ -31,6 +33,7 @@ RUN git apply /tmp/*.patch # Build PostgreSQL with debug flags RUN ./configure \ + --with-uuid=ossp \ --without-icu \ --with-openssl \ --prefix=/usr/local/pgsql @@ -108,6 +111,7 @@ RUN apk add -uU --no-cache \ bash \ su-exec \ openssl \ + ossp-uuid-dev \ postgresql-client \ krb5