pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedBacking up several tables using pg_dump -t
4+ messages / 3 participants
[nested] [flat]
* Backing up several tables using pg_dump -t
@ 2005-09-22 19:38 Tomeh, Husam <htomeh@firstam.com>
2005-09-22 20:15 ` Re: Backing up several tables using pg_dump -t Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
2005-09-22 21:07 ` Re: Backing up several tables using pg_dump -t Hannes Dorbath <light@theendofthetunnel.de>
0 siblings, 2 replies; 4+ messages in thread
From: Tomeh, Husam @ 2005-09-22 19:38 UTC (permalink / raw)
To: pgsql-admin
I'm having problem backing up several tables using pg_dump. When
selecting one table only with the '-t' option, it works just fine. When
I tried to include several tables, pg_dump fails with error that the
tables specified don't exist. Can you show me an example of backing up
several tables using pg_dump.
Thanks in advance,
--
Husam
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
**********************************************************************
This message contains confidential information intended only for the
use of the addressee(s) named above and may contain information that
is legally privileged. If you are not the addressee, or the person
responsible for delivering it to the addressee, you are hereby
notified that reading, disseminating, distributing or copying this
message is strictly prohibited. If you have received this message by
mistake, please immediately notify us by replying to the message and
delete the original message immediately thereafter.
Thank you. FADLD Tag
**********************************************************************
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Backing up several tables using pg_dump -t
2005-09-22 19:38 Backing up several tables using pg_dump -t Tomeh, Husam <htomeh@firstam.com>
@ 2005-09-22 20:15 ` Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
1 sibling, 0 replies; 4+ messages in thread
From: Rajesh Kumar Mallah @ 2005-09-22 20:15 UTC (permalink / raw)
To: Tomeh, Husam <htomeh@firstam.com>; +Cc: pgsql-admin
man pg_dump seems to say it is not possible
-t table
--table=table
Dump data for table only. It is possible for there to be multi-
ple tables with the same name in different schemas; if that is
the case, all matching tables will be dumped. Specify both
--schema and --table to select just one table.
Note: In this mode, pg_dump makes no attempt to dump any other
database objects that the selected table may depend upon. There-
fore, there is no guarantee that the results of a single-table
dump can be successfully restored by themselves into a clean
database.
On 9/23/05, Tomeh, Husam <htomeh@firstam.com> wrote:
>
> I'm having problem backing up several tables using pg_dump. When
> selecting one table only with the '-t' option, it works just fine. When
> I tried to include several tables, pg_dump fails with error that the
> tables specified don't exist. Can you show me an example of backing up
> several tables using pg_dump.
>
> Thanks in advance,
>
>
> --
> Husam
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
> **********************************************************************
> This message contains confidential information intended only for the
> use of the addressee(s) named above and may contain information that
> is legally privileged. If you are not the addressee, or the person
> responsible for delivering it to the addressee, you are hereby
> notified that reading, disseminating, distributing or copying this
> message is strictly prohibited. If you have received this message by
> mistake, please immediately notify us by replying to the message and
> delete the original message immediately thereafter.
>
> Thank you. FADLD Tag
> **********************************************************************
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Backing up several tables using pg_dump -t
2005-09-22 19:38 Backing up several tables using pg_dump -t Tomeh, Husam <htomeh@firstam.com>
@ 2005-09-22 21:07 ` Hannes Dorbath <light@theendofthetunnel.de>
1 sibling, 0 replies; 4+ messages in thread
From: Hannes Dorbath @ 2005-09-22 21:07 UTC (permalink / raw)
To: pgsql-admin
On 22.09.2005 21:38, Tomeh, Husam wrote:
> Can you show me an example of backing up several tables using pg_dump.
I'd just warp pg_dump in a little (shell-)script or dump all tables and
pass pg_restore a TOC list (-L option) of objects I want.
--
Regards,
Hannes Dorbath
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Backing up several tables using pg_dump -t
@ 2005-09-30 17:01 Tomeh, Husam <htomeh@firstam.com>
0 siblings, 0 replies; 4+ messages in thread
From: Tomeh, Husam @ 2005-09-30 17:01 UTC (permalink / raw)
To: pgsql-admin; +Cc: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
Thanks Rajesh.
Is this on TODO list? I think it's beneficial to be able to backup (or
oracle term, export) several tables (NOT only ONE) and restore (import)
back to another database for instance from a production DB to a
development or staging to prod, etc..) [This is doable in Oracle too
via the export/import utilities.]
--
Husam
-----Original Message-----
From: Rajesh Kumar Mallah [mailto:mallah.rajesh@gmail.com]
Sent: Thursday, September 22, 2005 1:16 PM
To: Tomeh, Husam
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Backing up several tables using pg_dump -t
man pg_dump seems to say it is not possible
-t table
--table=table
Dump data for table only. It is possible for there to be
multi-
ple tables with the same name in different schemas; if
that is
the case, all matching tables will be dumped.
Specify both
--schema and --table to select just one table.
Note: In this mode, pg_dump makes no attempt to dump any
other
database objects that the selected table may depend upon.
There-
fore, there is no guarantee that the results of a
single-table
dump can be successfully restored by themselves into a
clean
database.
On 9/23/05, Tomeh, Husam <htomeh@firstam.com> wrote:
>
> I'm having problem backing up several tables using pg_dump. When
> selecting one table only with the '-t' option, it works just fine.
When
> I tried to include several tables, pg_dump fails with error that the
> tables specified don't exist. Can you show me an example of backing up
> several tables using pg_dump.
>
> Thanks in advance,
>
>
> --
> Husam
>
> ---------------------------(end of
broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
> **********************************************************************
> This message contains confidential information intended only for the
> use of the addressee(s) named above and may contain information that
> is legally privileged. If you are not the addressee, or the person
> responsible for delivering it to the addressee, you are hereby
> notified that reading, disseminating, distributing or copying this
> message is strictly prohibited. If you have received this message by
> mistake, please immediately notify us by replying to the message and
> delete the original message immediately thereafter.
>
> Thank you. FADLD Tag
> **********************************************************************
>
>
> ---------------------------(end of
broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that
your
> message can get through to the mailing list cleanly
>
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2005-09-30 17:01 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-09-22 19:38 Backing up several tables using pg_dump -t Tomeh, Husam <htomeh@firstam.com>
2005-09-22 20:15 ` Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
2005-09-22 21:07 ` Hannes Dorbath <light@theendofthetunnel.de>
2005-09-30 17:01 Re: Backing up several tables using pg_dump -t Tomeh, Husam <htomeh@firstam.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