Re: Select Output in XML format - Mailing list pgsql-general

From Chetan Suttraway
Subject Re: Select Output in XML format
Date
Msg-id CAPtHcnEVvoWhXwKyBTT7iJbGWMAOT9L_xwZQtc2Z7cMPZo5ELA@mail.gmail.com
Whole thread Raw
In response to Select Output in XML format  (Adarsh Sharma <adarsh.sharma@orkash.com>)
List pgsql-general


On Thu, Sep 8, 2011 at 12:11 PM, Adarsh Sharma <adarsh.sharma@orkash.com> wrote:
Dear all,

Today I need to write the output of an postgres table into XML format.
I think there is an easiest way to do this but not able to find it.

In mysql there is simple query for that :

mysql -X -e "select * from db_name.master"  > /hdd2-1/test.xml

In postgres , i find some XML data types but how we can put our select output into xml file.


Thanks

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


Please go through below link:

http://www.postgresql.org/docs/9.0/static/xml2.html
http://developer.postgresql.org/pgdocs/postgres/functions-xml.html

Regards,
Chetan

--
EnterpriseDB Corporation
The Enterprise PostgreSQL Company

EnterpriseDB Blog : http://blogs.enterprisedb.com




pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Select Output in XML format
Next
From: Adarsh Sharma
Date:
Subject: Re: Select Output in XML format