Skip site navigation (1) Skip section navigation (2)

Re: XML ouput for psql

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: greg(at)turnstep(dot)com, pgsql-patches(at)postgresql(dot)org
Subject: Re: XML ouput for psql
Date: 2003-03-17 23:08:12
Message-ID: 200303172308.h2HN8CY20689@candle.pha.pa.us (view raw, whole thread or download thread mbox)
Thread:
Lists: pgsql-hackerspgsql-patches
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > I like the idea of doing XML in psql --- it seems like a natural place
> > for it.
> 
> Not really; what of applications other than shell scripts that would
> like to get XML-formatted output?
> 
> There was some talk in the FE/BE protocol thread of adding hooks to
> support more than one output format from the backend.  Much of the
> infrastructure already exists (see DestReceiver in the backend); we
> just need an agreement on the protocol.  On the whole I'd rather see
> it done that way than burying the logic in psql.

Well, programs can run psql using popen.  It seems overkill to get the
protocol involved, specially since it is output-only.  I can't imagine
who would bother with the wire protocol messiness just to get xml.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2003-03-17 23:18:49
Subject: Re: XML ouput for psql
Previous:From: Tom LaneDate: 2003-03-17 22:59:15
Subject: Re: XML ouput for psql

pgsql-patches by date

Next:From: Tom LaneDate: 2003-03-17 23:18:49
Subject: Re: XML ouput for psql
Previous:From: Tom LaneDate: 2003-03-17 22:59:15
Subject: Re: XML ouput for psql

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group