pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bricklen Anderson <BAnderson@PresiNET.com>
To: Lee Wu <Lwu@mxlogic.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: select * and save into a text file failed
Date: Fri, 10 Jun 2005 08:35:29 -0700
Message-ID: <42A9B341.20004@PresiNET.com> (raw)
In-Reply-To: <E1F0E4D89D8FA44789DFC065C8E755281A360A@mxlhq-exch01.corp.mxlogic.com>
References: <E1F0E4D89D8FA44789DFC065C8E755281A360A@mxlhq-exch01.corp.mxlogic.com>

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.
_______________________________



view thread (11+ messages)  latest in thread

Message-ID: <42A9B341.20004@PresiNET.com>
Permalink:  ../42A9B341.20004@PresiNET.com/
Also on:    postgresql.org/message-id/42A9B341.20004@PresiNET.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: BAnderson@PresiNET.com, Lwu@mxlogic.com
  Subject: Re: select * and save into a text file failed
  In-Reply-To: <42A9B341.20004@PresiNET.com>
  References: <E1F0E4D89D8FA44789DFC065C8E755281A360A@mxlhq-exch01.corp.mxlogic.com> <42A9B341.20004@PresiNET.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox