pg_dump to include multiple tables

Lists: pgsql-general
From: cha <chandresh(dot)rana(at)metrixline(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_dump to include multiple tables
Date: 2007-06-19 05:40:31
Message-ID: 11188783.post@talk.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general


Hi All,

I want to dump the database by using pg_dump command but the problem is the
version at the server is 7.4 which doesn't support the provision for
excluding tables as in version 8.2.

There are 500+ tables in the database,from which 15-20 are of huge sizes.I
want to exclude them.Is there any way to do it?

I knw that I have to use include instead of excluding the tables.Do I have
to include each and every tables manually or is there way to do that?

Do i have to write the script for this? if yes, how should I proceed?

Please help me out with this issue.

Thanks in Advance.

Cheers,
Cha
--
View this message in context: http://www.nabble.com/pg_dump-to-include-multiple-tables-tf3944396.html#a11188783
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


From: Michael Glaesemann <grzm(at)seespotcode(dot)net>
To: cha <chandresh(dot)rana(at)metrixline(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump to include multiple tables
Date: 2007-06-26 00:08:25
Message-ID: 7A14B01A-B19C-4CD1-AEDC-B1FCC90D52AD@seespotcode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general


On Jun 19, 2007, at 0:40 , cha wrote:

> I want to dump the database by using pg_dump command but the
> problem is the
> version at the server is 7.4 which doesn't support the provision for
> excluding tables as in version 8.2.

The v8.2 pg_dump will be able to dump data from the v7.4 server, so
use a newer pg_dump. Note that you may have difficulty loading the
dump file created by the newer version into an older server. But
hopefully you're upgrading, as 7.4 is getting a little long in the
tooth.

Michael Glaesemann
grzm seespotcode net