Skip to content

Commit 7c89f35

Browse files
committed
Ensure xmloption = content while restoring pg_dump output.
In combination with the previous commit, this ensures that valid XML data can always be dumped and reloaded, whether it is "document" or "content". Discussion: https://postgr.es/m/CAN-V+g-6JqUQEQZ55Q3toXEN6d5Ez5uvzL4VR+8KtvJKj31taw@mail.gmail.com
1 parent 849f87a commit 7c89f35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bin/pg_dump/pg_backup_archiver.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3142,6 +3142,9 @@ _doSetFixedOutputState(ArchiveHandle *AH)
31423142
/* Make sure function checking is disabled */
31433143
ahprintf(AH, "SET check_function_bodies = false;\n");
31443144

3145+
/* Ensure that all valid XML data will be accepted */
3146+
ahprintf(AH, "SET xmloption = content;\n");
3147+
31453148
/* Avoid annoying notices etc */
31463149
ahprintf(AH, "SET client_min_messages = warning;\n");
31473150
if (!AH->public.std_strings)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy