From: paul.macdonald@ssc-spc.gc.ca
To: pgsql-bugs@postgresql.org
Subject: BUG #8247: Duplicate database names - pg_dump backup fails
Date: Fri, 21 Jun 2013 17:38:32 +0000
Message-ID: <E1Uq5I8-0002bm-GF@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 8247
Logged by: Paul Macdonald
Email address: paul.macdonald@ssc-spc.gc.ca
PostgreSQL version: Unsupported/Unknown
Operating system: Debian Sarge
Description:
Postgres version: 7.4.7-6sarge1
Issue: pg_dump fails due to unexpected duplication of database name
("avipads"). Dropdb will remove one instance of the database name, but
unable to remove the second instance.
Scope: This specific database is used on multiple servers nationally. Three
of our servers have this issue, the majority do not. The issue only affects
our ability to locally backup the "avipads" database. The servers having the
problem are clustered pair systems. The other cluster pair servers do not
have the problem.
Name | Owner | Encoding
-----------+-------------+-----------
avipads | | SQL_ASCII
avipads | avimgr | SQL_ASCII
rtadb | rtafbackend | SQL_ASCII
rtafdb | rtafbackend | SQL_ASCII
template0 | postgres | SQL_ASCII
template1 | postgres | SQL_ASCII
When a new version of the database is available for installation, the
installation script does the following steps
a) remove the old database
su - avimgr -c "dropdb --quiet --username=avimgr avipads" || true
b) remove the avimgr user
su - postgres -c "dropuser --quiet avimgr" || true
c) create the avimgr Posgresql user
su - postgres -c "createuser avimgr --no-adduser --createdb --quiet; true"
2> /dev/null
d) install the new database
su - avimgr -c "/apps/avipads/voicedb/restorevoice
/apps/avipads/voicedb/vdb2.5.1.pg"
I would like details on how to successfully remove both "avipads" databases,
in order to have the pg_dump be functional again.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: paul.macdonald@ssc-spc.gc.ca
Subject: Re: BUG #8247: Duplicate database names - pg_dump backup fails
In-Reply-To: <E1Uq5I8-0002bm-GF@wrigleys.postgresql.org>
References: <E1Uq5I8-0002bm-GF@wrigleys.postgresql.org>
* 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