Skip to content

Commit

Permalink
fix: remove uniq to avoid data corruption (#2632)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmountain committed Aug 23, 2024
1 parent 1a58c8a commit ca9a72f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/db/dump/templates/dump_schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ pg_dump \
| sed -E 's/^COMMENT ON EXTENSION (.+)/-- &/' \
| sed -E 's/^CREATE POLICY "cron_job_/-- &/' \
| sed -E 's/^ALTER TABLE "cron"/-- &/' \
| sed -E "${EXTRA_SED:-}" \
| uniq
| sed -E "${EXTRA_SED:-}"

# Reset session config generated by pg_dump
echo "RESET ALL;"

0 comments on commit ca9a72f

Please sign in to comment.