Content-Length: 258146 | pFad | http://github.com/postgrespro/postgres_cluster/commit/4870dce37fab7ed308cee9856bec4d4c8c7590b3

83 Ensure xmloption = content while restoring pg_dump output. · postgrespro/postgres_cluster@4870dce · GitHub
Skip to content

Commit 4870dce

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 8d1dadb commit 4870dce

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
@@ -3179,6 +3179,9 @@ _doSetFixedOutputState(ArchiveHandle *AH)
31793179
/* Make sure function checking is disabled */
31803180
ahprintf(AH, "SET check_function_bodies = false;\n");
31813181

3182+
/* Ensure that all valid XML data will be accepted */
3183+
ahprintf(AH, "SET xmloption = content;\n");
3184+
31823185
/* Avoid annoying notices etc */
31833186
ahprintf(AH, "SET client_min_messages = warning;\n");
31843187
if (!AH->public.std_strings)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/4870dce37fab7ed308cee9856bec4d4c8c7590b3

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy