pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simone Tellini <tellini@areabusiness.it>
To: pgsql-admin@postgresql.org
Subject: Re: pg_dumpall and pg_dumps
Date: Thu, 21 Feb 2002 19:15:45 +0100
Message-ID: <20020221190831.71BB.TELLINI@areabusiness.it> (raw)
In-Reply-To: <8541.1014314039@sss.pgh.pa.us>
References: <66d229f1.0202210729.1414c5cc@posting.google.com>
	<8541.1014314039@sss.pgh.pa.us>


On Thu, 21 Feb 2002 12:53:59 -0500
Tom Lane <tgl@sss.pgh.pa.us> wrote:

TL> There are known problems in reloading 7.1 dumps into 7.2 if you use
TL> mixed-case user names or database names; might that be the source
TL> of some of your problems?  Are there other problems?

while you're at it, there are 2 other problems I've always experienced
with pg_dump/pg_dumpall:

 1. it fails to restore databases owned by users who aren't allowed to
    create databases: the dump contains a "CREATE USER x NOCREATEDB"
    line at the top, then tries to \connect x and CREATE DATABASE y,
    which obviously fails. It should always use CREATEDB for all users,
    then remove the privilege at the end of the dump when appropriate.

 2. you can't specify username and password on the command line: this
    makes it impossible to backup automatically all the databases from a
    cron script if you use password authentication, for instance.

It would be nice to have those fixed for good. ;-)

-- 

Simone Tellini
E-mail: tellini@areabusiness.it
http://www.areabusiness.it




view thread (5+ messages)  latest in thread

Message-ID: <20020221190831.71BB.TELLINI@areabusiness.it>
Permalink:  ../20020221190831.71BB.TELLINI@areabusiness.it/
Also on:    postgresql.org/message-id/20020221190831.71BB.TELLINI@areabusiness.it

 · 

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: tellini@areabusiness.it
  Subject: Re: pg_dumpall and pg_dumps
  In-Reply-To: <20020221190831.71BB.TELLINI@areabusiness.it>
  References: <66d229f1.0202210729.1414c5cc@posting.google.com> <8541.1014314039@sss.pgh.pa.us> <20020221190831.71BB.TELLINI@areabusiness.it>

* 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