pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_dump: Exclude multiple tables in version 7.4
3+ messages / 2 participants
[nested] [flat]
* pg_dump: Exclude multiple tables in version 7.4
@ 2007-06-19 05:42 cha <chandresh.rana@metrixline.com>
0 siblings, 2 replies; 3+ messages in thread
From: cha @ 2007-06-19 05:42 UTC (permalink / raw)
To: pgsql-admin
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%3A-Exclude-multiple-tables-in-version-7.4-tf3944402.html#a11188794
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pg_dump: Exclude multiple tables in version 7.4
@ 2007-06-19 16:09 Tom Lane <tgl@sss.pgh.pa.us>
parent: cha <chandresh.rana@metrixline.com>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2007-06-19 16:09 UTC (permalink / raw)
To: cha <chandresh.rana@metrixline.com>; +Cc: pgsql-admin
cha <chandresh.rana@metrixline.com> writes:
> 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.
If you're dumping with the intent to update to 8.2, you could use 8.2's
pg_dump.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pg_dump: Exclude multiple tables in version 7.4
@ 2007-06-21 15:24 cha <chandresh.rana@metrixline.com>
parent: cha <chandresh.rana@metrixline.com>
1 sibling, 0 replies; 3+ messages in thread
From: cha @ 2007-06-21 15:24 UTC (permalink / raw)
To: pgsql-admin
Hi,
Am able to figure out the solution for the issue. I accomplish the task by
writing the ant script and batch file. In the batch file am passing the
table name as arguments.
Only thing I had to do manually is to list out the name of the tables in
batch file.
Cheers,
Cha
cha wrote:
>
> 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%3A-Exclude-multiple-tables-in-version-7.4-tf3944402.html#a11235484
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2007-06-21 15:24 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-06-19 05:42 pg_dump: Exclude multiple tables in version 7.4 cha <chandresh.rana@metrixline.com>
2007-06-19 16:09 ` Tom Lane <tgl@sss.pgh.pa.us>
2007-06-21 15:24 ` cha <chandresh.rana@metrixline.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox