Re: Outputting to file - Mailing list pgsql-novice

From Josh Berkus
Subject Re: Outputting to file
Date
Msg-id 200206051423.51141.josh@agliodbs.com
Whole thread Raw
In response to Outputting to file  (Tom Ansley <tansley@law.du.edu>)
List pgsql-novice
Tom,

> Can anybody point me in the right direction for writing rows of data to a
> file.  I know how to put stuff into a database from file but not how to get
> stuff out.

From psql:

\o file_name
SELECT whatever FROM some_table;
\o

See the documentatin on PSQL for more instructions.  Or type \? at the psql
prompt.

-Josh Berkus


pgsql-novice by date:

Previous
From: Tom Ansley
Date:
Subject: Outputting to file
Next
From: "Patrick Hatcher"
Date:
Subject: COPY from with PERL missing chunk of data