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: PG_DUMP



renneyt(at)yahoo(dot)com wrote:
> Is there a way to do a selective pg_dump of a table using a select
> where clause? As in ... dump all records where now-col_date < 2 or
> col_date='01-may-2006' etc.. ?
You can transfer the subset of data to another table, e.g.,

create table my_dump as select * from table_foo where ...

and then dump that table. Note that you can't do this to a view (pg_dump
will dump the view definition, but not the data).

-- 
Jeffery Boes  <><
jeff(at)endpoint(dot)com



  • References:
    • PG_DUMP
      • From: renneyt(at)yahoo(dot)com

Home | Main Index | Thread Index

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