From: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
To: Tomeh, Husam <htomeh@firstam.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Backing up several tables using pg_dump -t
Date: Fri, 23 Sep 2005 01:45:58 +0530
Message-ID: <a97c77030509221315134d5277@mail.gmail.com> (raw)
In-Reply-To: <C45835824D00A844BBD0F032D5CDED920116DD4F@pisgana01sxch01.ana.firstamdata.com>
References: <C45835824D00A844BBD0F032D5CDED920116DD4F@pisgana01sxch01.ana.firstamdata.com>
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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mallah.rajesh@gmail.com, htomeh@firstam.com
Subject: Re: Backing up several tables using pg_dump -t
In-Reply-To: <a97c77030509221315134d5277@mail.gmail.com>
References: <C45835824D00A844BBD0F032D5CDED920116DD4F@pisgana01sxch01.ana.firstamdata.com> <a97c77030509221315134d5277@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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