From: Reece Hart <rkh@gene.COM>
To: Marvin <magosoft@gmx.net>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Export to file
Date: Wed, 10 Sep 2003 08:17:31 -0700
Message-ID: <1063207051.2448.80.camel@tallac> (raw)
In-Reply-To: <3F5DFCA5.000006.00924@guaj215desa>
References: <3F5DFCA5.000006.00924@guaj215desa>
On Tue, 2003-09-09 at 09:15, Marvin wrote:
>
> There is a way to export the result
> of a query into an external DBF or TXT table?
>
I often do something like this:
$ psql -At -c 'select ... where ...'
This is so handy, that I have a (bash) shell alias for it:
$ alias csbq='psql -UPUBLIC -dcsb -At -c'
then
$ csbq 'select ...'
-Reece
--
Reece Hart, Ph.D. rkh@gene.com, http://www.gene.com/
Genentech, Inc. 650/225-6133 (voice), -5389 (fax)
Bioinformatics and Protein Engineering
1 DNA Way, MS-93 http://www.in-machina.com/~reece/
South San Francisco, CA 94080-4990 reece@in-machina.com, GPG: 0x25EC91A0
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: rkh@gene.COM, magosoft@gmx.net
Subject: Re: Export to file
In-Reply-To: <1063207051.2448.80.camel@tallac>
References: <3F5DFCA5.000006.00924@guaj215desa> <1063207051.2448.80.camel@tallac>
* 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