pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bhella, Paramjeet <PBhella@Motorola.com>
To: pgsql-admin@postgresql.org
Subject: Restoring single database from an export dump of a cluster
Date: Thu, 5 Apr 2007 14:13:45 -0700
Message-ID: <B949C470120CA7499A211214D76FBA580289F46E@mxca2.corp.netopia.com> (raw)

Hi

In our production environment we use pg_dumpall to backup all the
databases of a cluster as there are 200+ databases in a cluster. Some
times there is a situation where we have to restore a single database
from a cluster. According to the postgres docs there is a pg_restore
utiltity which can be used to restore individual tables, schemas,
databases etc. But pg_restore requires the pg_dump to be in archive
format. With pg_dump we can use option -Fc to make the dump in non-plain
text format but I cannot use -Fc option with pg_dumpall. Is there a way
to import a single database from an export dump of a cluster? Your help
or guidance will be highly appreciated.

Thanks
Paramjeet Kaur
Professional Services and Motorola Broadband Solutions Group



view thread (2+ messages)  latest in thread

Message-ID: <B949C470120CA7499A211214D76FBA580289F46E@mxca2.corp.netopia.com>
Permalink:  ../B949C470120CA7499A211214D76FBA580289F46E@mxca2.corp.netopia.com/
Also on:    postgresql.org/message-id/B949C470120CA7499A211214D76FBA580289F46E@mxca2.corp.netopia.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: PBhella@Motorola.com
  Subject: Re: Restoring single database from an export dump of a cluster
  In-Reply-To: <B949C470120CA7499A211214D76FBA580289F46E@mxca2.corp.netopia.com>
  References: <B949C470120CA7499A211214D76FBA580289F46E@mxca2.corp.netopia.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