[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    [GENERAL] db_restore and xml data
From:       Enrico Sirola <enrico.sirola () gmail ! com>
Date:       2009-02-27 17:09:57
Message-ID: 99072977-1EA1-4D8D-8C10-B4786FD93443 () gmail ! com
[Download RAW message or body]

Hello,
I have a pgsql database hosting xml data in xml columns. The data,  
have <!DOCTYPE> declarations at the beginning, so it is saved with

XMLPARSE (DOCUMENT <text>)

when I try to restore a database from dump, pg_restore complains  
because the data it tries to restore is not an xml content  
(correctly), so what I usually do is to edit the postgresql.conf file,  
change xmloption to 'document', reload the conf file and make  
pg_restore happy.
However, the documentation (8.13.1) says

"The default is CONTENT, so all forms of XML data are allowed."

from this statement, it seems there are 'content' xmls which are not  
'document' xmls and vice versa, so how do you proceed in this case? It  
seems that potentially you could be unable to restore from a dump.
Thanks for your help,
Enrico


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic