Re: PG_DUMP

From: Jeff Boes <jeff(at)endpoint(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Cc: "renneyt(at)yahoo(dot)com" <renneyt(at)yahoo(dot)com>
Subject: Re: PG_DUMP
Date: 2006-05-26 13:45:24
Message-ID: 44770674.2010800@endpoint.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

In response to

  • PG_DUMP at 2006-05-26 04:50:50 from renneyt@yahoo.com

Browse pgsql-admin by date

  From Date Subject
Next Message jerome 2006-05-26 18:20:27 \i running on windows
Previous Message Alvaro Herrera 2006-05-26 12:20:57 Re: pg_clog questions