pg_dump to include multiple tables

Started by chaalmost 19 years ago2 messagesgeneral
Jump to latest
#1cha
chandresh.rana@metrixline.com

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.

#2Michael Glaesemann
grzm@seespotcode.net
In reply to: cha (#1)
Re: pg_dump to include multiple tables

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