pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander M. Pravking <fduch@antar.bryansk.ru>
To: Andreas Joseph Krogh <andreak@officenet.no>
Cc: pgsql-sql @ postgresql . org <pgsql-sql@postgresql.org>
Subject: Re: Backup of multiple tables
Date: Fri, 19 Sep 2003 18:19:17 +0400
Message-ID: <20030919141917.GA71229@dyatel.antar.bryansk.ru> (raw)
In-Reply-To: <200309191354.06071.andreak@officenet.no>
References: <200309191354.06071.andreak@officenet.no>

On Fri, Sep 19, 2003 at 01:54:01PM +0200, Andreas Joseph Krogh wrote:
> I usually backup my database with pg_backup without the -t option. But now I 
> need to only backup certain tables(say tab1 and tab2), is this possible with 
> pg_dump? I've tried with "pg_dump -t tab1 -t tab2" without success.

Here's a perl script I used to dump all the tables separately.
I'm not sure most of options do work there, I didn't test ;-)
It won't be hard to make it dump certain tables, I think.


-- 
Fduch M. Pravking

Attachments:

  dump.pl (application/x-perl, 2.4K) download

view thread (7+ messages)  latest in thread

Message-ID: <20030919141917.GA71229@dyatel.antar.bryansk.ru>
Permalink:  ../20030919141917.GA71229@dyatel.antar.bryansk.ru/
Also on:    postgresql.org/message-id/20030919141917.GA71229@dyatel.antar.bryansk.ru

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: fduch@antar.bryansk.ru, andreak@officenet.no
  Subject: Re: Backup of multiple tables
  In-Reply-To: <20030919141917.GA71229@dyatel.antar.bryansk.ru>

* 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