mirror of
https://github.com/postgres/postgres.git
synced 2026-04-14 05:27:20 -04:00
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
This commit is contained in:
parent
78f84fe0f4
commit
8ba4854229
1 changed files with 3 additions and 0 deletions
|
|
@ -2859,6 +2859,9 @@ _doSetFixedOutputState(ArchiveHandle *AH)
|
|||
/* Make sure function checking is disabled */
|
||||
ahprintf(AH, "SET check_function_bodies = false;\n");
|
||||
|
||||
/* Ensure that all valid XML data will be accepted */
|
||||
ahprintf(AH, "SET xmloption = content;\n");
|
||||
|
||||
/* Avoid annoying notices etc */
|
||||
ahprintf(AH, "SET client_min_messages = warning;\n");
|
||||
if (!AH->public.std_strings)
|
||||
|
|
|
|||
Loading…
Reference in a new issue