pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Enrico <scotty@linuxtime.it>
Cc: pgsql-admin@postgresql.org
Subject: Re: Dump  and Query
Date: Wed, 27 Dec 2006 14:20:27 -0600
Message-ID: <20061227202027.GA10295@wolff.to> (raw)
In-Reply-To: <20061227140530.094fc4d3.scotty@linuxtime.it>
References: <20061227140530.094fc4d3.scotty@linuxtime.it>

On Wed, Dec 27, 2006 at 14:05:30 +0100,
  Enrico <scotty@linuxtime.it> wrote:
> Is there any way to make a dump from a query?
> 
> For example if my query is:
> 
> select field1,field2 from table
> 
> Does it exist a shell command like pg_dump --QUERY myquery -f myfile?

In 8.2 you can use a query with the COPY command. Depending on what
you are really doing, that might be a solution for you.



view thread (5+ messages)

Message-ID: <20061227202027.GA10295@wolff.to>
Permalink:  ../20061227202027.GA10295@wolff.to/
Also on:    postgresql.org/message-id/20061227202027.GA10295@wolff.to

 · 

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: bruno@wolff.to, scotty@linuxtime.it
  Subject: Re: Dump  and Query
  In-Reply-To: <20061227202027.GA10295@wolff.to>
  References: <20061227140530.094fc4d3.scotty@linuxtime.it> <20061227202027.GA10295@wolff.to>

* 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