pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Koczan <pjkoczan@gmail.com>
To: Khan, Mahmood Ahram <Mahmood.Khan@in.unisys.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-admin-owner@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: XML output ?
Date: Sat, 1 Sep 2007 18:48:45 -0500
Message-ID: <4544e0330709011648r797a16b8l7bc9792a01983563@mail.gmail.com> (raw)
In-Reply-To: <D566E8CF3538B54D95B925CB69CB4D2A069764FC@inblr-exch1.eu.uis.unisys.com>
References: <AcfrgkNKVoHd2TgTTSGOEjdT5Wx6Fg==>
	<D566E8CF3538B54D95B925CB69CB4D2A069764FC@inblr-exch1.eu.uis.unisys.com>

> Is it possible to generate the output of SQL statements in PostgreSQL to XML
> output?
>
> If anybody has came across with this or worked on it? Or anybody has any
> Documentation for that?

Yes, you can either install the xml2 contrib module for current
versions, or if you can hold out until 8.3, there will be functions
for xml output built into postgres.

Check out http://developer.postgresql.org/pgdocs/postgres/functions-xml.html
and http://developer.postgresql.org/pgdocs/postgres/datatype-xml.html
for the upcoming 8.3 stuff. I couldn't find anything on xml2 quickly,
but I'm sure a few minutes of searching will help you find what you
need.

Peter



view thread (4+ messages)

Message-ID: <4544e0330709011648r797a16b8l7bc9792a01983563@mail.gmail.com>
Permalink:  ../4544e0330709011648r797a16b8l7bc9792a01983563@mail.gmail.com/
Also on:    postgresql.org/message-id/4544e0330709011648r797a16b8l7bc9792a01983563@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: pjkoczan@gmail.com, Mahmood.Khan@in.unisys.com, pgsql-admin-owner@postgresql.org, tgl@sss.pgh.pa.us
  Subject: Re: XML output ?
  In-Reply-To: <4544e0330709011648r797a16b8l7bc9792a01983563@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox