pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David F. Skoll <dfs@roaringpenguin.com>
To: pgsql-admin@postgresql.org
Subject: Dump only part of a DB
Date: Wed, 9 Jun 2004 10:09:27 -0400 (EDT)
Message-ID: <Pine.LNX.4.58.0406091006180.6478@shishi.roaringpenguin.com> (raw)

Hi,

pg_dump can be used to dump an entire database, or just a single
table.  Is there a way to make a consistent dump of more than one
table, but less than all of the tables in the database?  Doing a bunch
of single-table pg_dumps isn't really an option, because some tables
may change during the dumps, leading to constraint violations if we
try to restore them.

Rationale:  We have an application that makes a nightly dump of its
database.  There's one particular table that tends to be large, but happily
it's not critical if it's lost -- no real need to back it up.  So we'd
like to back up everything except that one large, non-critical table.

Regards,

David.



view thread (7+ messages)  latest in thread

Message-ID: <Pine.LNX.4.58.0406091006180.6478@shishi.roaringpenguin.com>
Permalink:  ../Pine.LNX.4.58.0406091006180.6478@shishi.roaringpenguin.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.58.0406091006180.6478@shishi.roaringpenguin.com

 · 

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 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: dfs@roaringpenguin.com
  Subject: Re: Dump only part of a DB
  In-Reply-To: <Pine.LNX.4.58.0406091006180.6478@shishi.roaringpenguin.com>
  References: <Pine.LNX.4.58.0406091006180.6478@shishi.roaringpenguin.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