Re: Question about xmloption and pg_restore - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Question about xmloption and pg_restore
Date
Msg-id CA+TgmoYgMwkp-t=ndrf+hf2h7jOe_hJdpzFUPokTLeFbV215vA@mail.gmail.com
Whole thread Raw
In response to Fwd: Question about xmloption and pg_restore  (Stefan Fercot <stefan.fercot@dalibo.com>)
Responses Re: Re: Question about xmloption and pg_restore  (Chapman Flack <chap@anastigmatix.net>)
List pgsql-hackers
On Thu, May 17, 2018 at 9:37 AM, Stefan Fercot <stefan.fercot@dalibo.com> wrote:
> When restoring a plain SQL dump, we got the message :
>
> ERROR:  invalid XML content
> DETAIL:  line 1: StartTag: invalid element name
> <!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
>  ^
> CONTEXT:  COPY layer_styles, line 1, column styleqml: "<!DOCTYPE qgis PUBLIC
> 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
>
> Adding "SET XML OPTION DOCUMENT;" in top of the dump file allows to restore
> it.

Hmm.  I thought that xmloption = 'content' was supposed to be strictly
more permissive than xmloption = 'document'.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Removing unneeded self joins
Next
From: Robert Haas
Date:
Subject: Re: 'tuple concurrently updated' error w/o visible catalog updates