Open
Conversation
Postgres 17.6 added \restrict and \unrestrict metacommands to pg_dump to mitigate a security issue. This code skips these lines when restoring roles. 17.6 release: https://www.postgresql.org/docs/17/release-17-6.html#RELEASE-17-6-CHANGES CVE: https://www.postgresql.org/support/security/CVE-2025-8714/
This was referenced Sep 26, 2025
teknogeek0
added a commit
to teknogeek0/pgcopydb
that referenced
this pull request
Dec 13, 2025
This commit addresses multiple test failures related to PostgreSQL 17.6+ security updates and Docker configuration issues. Changes: - Skip \restrict and \unrestrict metacommands in pg_dumpall output (CVE-2025-8714 mitigation added in PG 17.6, 16.11, etc.) Fixes: pagila, timescaledb test failures Reference: upstream PR dimitri#925 - Fix Docker ARG scoping in all Dockerfile.pg files ARG must be redeclared after FROM to be available in RUN commands Fixes: cdc-wal2json, follow-wal2json, cdc-endpos-between-transaction build failures - Remove hardcoded Debian version from Docker images Changed postgres:VERSION-bookworm to postgres:VERSION Supports PG 16/17 (bookworm) and PG 18 (trixie) automatically
jmealo
pushed a commit
to jmealo/pgcopydb
that referenced
this pull request
Jan 12, 2026
This commit addresses multiple test failures related to PostgreSQL 17.6+ security updates and Docker configuration issues. Changes: - Skip \restrict and \unrestrict metacommands in pg_dumpall output (CVE-2025-8714 mitigation added in PG 17.6, 16.11, etc.) Fixes: pagila, timescaledb test failures Reference: upstream PR dimitri#925 - Fix Docker ARG scoping in all Dockerfile.pg files ARG must be redeclared after FROM to be available in RUN commands Fixes: cdc-wal2json, follow-wal2json, cdc-endpos-between-transaction build failures - Remove hardcoded Debian version from Docker images Changed postgres:VERSION-bookworm to postgres:VERSION Supports PG 16/17 (bookworm) and PG 18 (trixie) automatically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #922 and tests
Postgres 17.6 (and 16.10, etc) added
\restrictand\unrestrictmetacommands to pg_dump output to mitigate a security issue. This code skips these lines when restoring roles.17.6 change notes: https://www.postgresql.org/docs/17/release-17-6.html#RELEASE-17-6-CHANGES
CVE: https://www.postgresql.org/support/security/CVE-2025-8714/