Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Dump and Query



On Wed, Dec 27, 2006 at 14:05:30 +0100,
  Enrico <scotty(at)linuxtime(dot)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.



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group