From: | "Lee Wu" <Lwu(at)mxlogic(dot)com> |
---|---|
To: | "Bricklen Anderson" <BAnderson(at)PresiNET(dot)com> |
Cc: | <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: select * and save into a text file failed |
Date: | 2005-06-10 16:22:47 |
Message-ID: | E1F0E4D89D8FA44789DFC065C8E755281A360C@mxlhq-exch01.corp.mxlogic.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Same:
My_db=# select * from a_table \o 'test2.dat'
My_db-# ;
Killed
-----Original Message-----
From: Bricklen Anderson [mailto:BAnderson(at)PresiNET(dot)com]
Sent: Friday, June 10, 2005 9:35 AM
To: Lee Wu
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] select * and save into a text file failed
Lee Wu wrote:
>
> How can I save PG data into text file without using pg_dump?
>
did you try
select * from table \o '/var/tmp/textfile.txt'
;
--
_______________________________
This e-mail may be privileged and/or confidential, and the sender does
not waive any related rights and obligations. Any distribution, use or
copying of this e-mail or the information it contains by other than an
intended recipient is unauthorized. If you received this e-mail in
error, please advise me (by return e-mail or otherwise) immediately.
_______________________________
From | Date | Subject | |
---|---|---|---|
Next Message | Lee Wu | 2005-06-10 16:33:57 | Re: select * and save into a text file failed |
Previous Message | Tom Lane | 2005-06-10 16:03:19 | Re: PostgreSQL default data location |