From: m.sakrejda@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #6706: pg_upgrade fails when plpgsql dropped/re-created
Date: Mon, 25 Jun 2012 22:57:56 +0000
Message-ID: <E1SjIEG-0007Xu-PW@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 6706
Logged by: Maciek Sakrejda
Email address: m.sakrejda@gmail.com
PostgreSQL version: Unsupported/Unknown
Operating system: Ubuntu 12.04 LTS (3.2.0-25-generic x86_64)
Description:
Using the 9.2beta2 of pg_upgrade and for the upgrade-to cluster.
Ran into an issue upgrading a 9.1 cluster via pg_upgrade. I can reproduce it
consistently:
1. Create a 9.1 cluster
2. Run "drop extension plpgsql" as superuser
3. Run "create extension plpgsql" as non-superuser
4. Perform normal upgrade via pg_upgrade
The last step fails and I get the following error in
pg_upgrade_restore.log:
SELECT binary_upgrade.create_empty_extension('plpgsql', 'pg_catalog', false,
'1.0', NULL, NULL, ARRAY[]::pg_catalog.text[]);
psql:pg_upgrade_dump_db.sql:40: ERROR: duplicate key value violates unique
constraint "pg_extension_name_index"
DETAIL: Key (extname)=(plpgsql) already exists.
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: m.sakrejda@gmail.com
Subject: Re: BUG #6706: pg_upgrade fails when plpgsql dropped/re-created
In-Reply-To: <E1SjIEG-0007Xu-PW@wrigleys.postgresql.org>
References: <E1SjIEG-0007Xu-PW@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