Re: ps_dump -a

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: ps_dump -a
Date: 2002-10-29 20:55:08
Message-ID: 20021029155508.X25851@mail.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Oct 29, 2002 at 10:24:48AM -0500, Johnson, Shaunn wrote:
> Running PostgreSQL 7.2.1 on RedHat Linux 7.2:
>
> I'm trying to do a "pg_dump -a -t t_table -d testdb > out.txt"
> and I'm still getting header information. How can I do
> a dump of data to a text file and not get information like
> the comments, Date for TOC Entry, Name, etc ... I just
> want the raw data. I've tried to pipe it through using
> tail, but I don't know if I'm missing the beginning of the
> file.

What about

pg_dump -a -t t_table -d testdb | grep -v "^--" > out.txt

? The grep will get rid of any line that begins with "-", which will
be a comment line.

A

--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew(at)libertyrms(dot)info> M2P 2A8
+1 416 646 3304 x110

In response to

  • ps_dump -a at 2002-10-29 15:24:48 from Johnson, Shaunn

Browse pgsql-general by date

  From Date Subject
Next Message Johnson, Shaunn 2002-10-29 20:59:18 Re: ps_dump -a
Previous Message Medi Montaseri 2002-10-29 20:30:40 Re: DAFS?