Re: CSV mode option for pg_dump

From: Rod Taylor <pg(at)rbt(dot)ca>
To: Bill Bartlett <bbartlett(at)softwareanalytics(dot)com>
Cc: "'Joshua D(dot) Drake'" <jd(at)commandprompt(dot)com>, 'Andrew Dunstan' <andrew(at)dunslane(dot)net>, 'Tom Lane' <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 'PG Hackers' <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CSV mode option for pg_dump
Date: 2006-06-13 15:30:56
Message-ID: 1150212656.777.52.camel@home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 2006-06-12 at 16:28 -0400, Bill Bartlett wrote:
> Can't -- the main production database is over at a CoLo site with access
> only available via SSH, and tightly-restricted SSH at that. Generally
> one of the developers will SSH over to the server, pull out whatever
> data is needed into a text file via psql or pg_dump, scp the file(s)
> back here and send them to the user.

I don't get it. If you can use psql then you already have csv support.

psql -c 'COPY pg_class TO STDOUT WITH CSV' postgres > pg_class.csv

> > -----Original Message-----
> > From: Joshua D. Drake [mailto:jd(at)commandprompt(dot)com]
> > Sent: Monday, June 12, 2006 4:15 PM
> > To: Bill Bartlett
> > Cc: 'Andrew Dunstan'; 'Tom Lane'; 'PG Hackers'
> > Subject: Re: [HACKERS] CSV mode option for pg_dump
> >
> >
> > Bill Bartlett wrote:
> > > Here's me speaking up -- I'd definitely use it! As a
> > quick way to pull
> > > data into Excel to do basic reports or analysis, a CSV
> > format would be
> > > great.
> >
> > Why not just use ODBC?
> >
> > Joshua D. Drake
> > --
> >
> > === The PostgreSQL Company: Command Prompt, Inc. ===
> > Sales/Support: +1.503.667.4564 || 24x7/Emergency:
> > +1.800.492.2240
> > Providing the most comprehensive PostgreSQL solutions
> > since 1997
> > http://www.commandprompt.com/
> >
> >
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
--

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-06-13 15:51:25 Re: timezones to own config file
Previous Message Andrew Dunstan 2006-06-13 15:21:17 Re: CSV mode option for pg_dump