Select Output in XML format - Mailing list pgsql-general

From Adarsh Sharma
Subject Select Output in XML format
Date
Msg-id 4E686386.6030103@orkash.com
Whole thread Raw
Responses Re: Select Output in XML format  (Craig Ringer <ringerc@ringerc.id.au>)
Re: Select Output in XML format  (Chetan Suttraway <chetan.suttraway@enterprisedb.com>)
List pgsql-general
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

pgsql-general by date:

Previous
From: Simon Riggs
Date:
Subject: Re: master-side counterpart of pg_last_xact_replay_timestamp?
Next
From: Fujii Masao
Date:
Subject: Re: master-side counterpart of pg_last_xact_replay_timestamp?