Skip to content

Commit 25c0de5

Browse files
authored
fix: remove transaction timeout from pg_dump (#3816)
* fix: remove transaction timeout from pg_dump * Update dump_schema.sh
1 parent b4fbbed commit 25c0de5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/migration/scripts/dump_schema.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export PGDATABASE="$PGDATABASE"
2121
# - do not include event triggers
2222
# - do not create pgtle schema and extension comments
2323
# - do not create publication "supabase_realtime"
24+
# - do not set transaction_timeout which requires pg17
2425
pg_dump \
2526
--schema-only \
2627
--quote-all-identifier \
@@ -47,6 +48,7 @@ pg_dump \
4748
| sed -E 's/^COMMENT ON EXTENSION (.+)/-- &/' \
4849
| sed -E 's/^CREATE POLICY "cron_job_/-- &/' \
4950
| sed -E 's/^ALTER TABLE "cron"/-- &/' \
51+
| sed -E 's/^SET transaction_timeout = 0;/-- &/' \
5052
| sed -E "${EXTRA_SED:-}"
5153

5254
# Reset session config generated by pg_dump

0 commit comments

Comments
 (0)