pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: cowwoc <cowwoc@bbs.darktech.org>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6706: pg_upgrade fails when plpgsql dropped/re-created
Date: Tue, 09 Dec 2014 17:03:43 -0500
Message-ID: <25623.1418162623@sss.pgh.pa.us> (raw)
In-Reply-To: <1418162132845-5829814.post@n5.nabble.com>
References: <20120702172836.GB25966@momjian.us>
	<20120704213703.GH5578@momjian.us>
	<9917.1341462118@sss.pgh.pa.us>
	<20120705133253.GJ5578@momjian.us>
	<CA+TgmoZBoPYon_Onz8kdou8oT8FiiepBP1e8WuDANCTMQ3kmNA@mail.gmail.com>
	<20120706233441.GA26828@momjian.us>
	<CAOtHd0ByqHPBRvExZgHfX4F28sYtAu2koDFAyJ8ZPo2qZ4kN1Q@mail.gmail.com>
	<20120707144544.GF26828@momjian.us>
	<CAOtHd0C-mZUBRV1Wb6CE4thdVyysOfODYAaRKOQQX1etBT1M3A@mail.gmail.com>
	<20120710214326.GA6315@momjian.us>
	<1418162132845-5829814.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

cowwoc <cowwoc@bbs.darktech.org> writes:
> My application invokes:
>   DROP EXTENSION IF EXISTS hstore CASCADE
> followed by:
>   CREATE EXTENSION IF NOT EXISTS hstore SCHEMA public
> and I get:
> org.postgresql.util.PSQLException: ERROR: duplicate key value violates
> unique constraint "pg_extension_name_index"
>   Detail: Key (extname)=(hstore) already exists.

That's bizarre.  It sounds like there's something corrupt about your
pg_extension system catalog.  Does "select * from pg_extension" show
reasonable-looking data?  If so, try "REINDEX TABLE pg_extension".

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (28+ messages)  latest in thread

Message-ID: <25623.1418162623@sss.pgh.pa.us>
Permalink:  ../25623.1418162623@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25623.1418162623@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, cowwoc@bbs.darktech.org
  Subject: Re: BUG #6706: pg_upgrade fails when plpgsql dropped/re-created
  In-Reply-To: <25623.1418162623@sss.pgh.pa.us>
  References: <20120702172836.GB25966@momjian.us> <20120704213703.GH5578@momjian.us> <9917.1341462118@sss.pgh.pa.us> <20120705133253.GJ5578@momjian.us> <CA+TgmoZBoPYon_Onz8kdou8oT8FiiepBP1e8WuDANCTMQ3kmNA@mail.gmail.com> <20120706233441.GA26828@momjian.us> <CAOtHd0ByqHPBRvExZgHfX4F28sYtAu2koDFAyJ8ZPo2qZ4kN1Q@mail.gmail.com> <20120707144544.GF26828@momjian.us> <CAOtHd0C-mZUBRV1Wb6CE4thdVyysOfODYAaRKOQQX1etBT1M3A@mail.gmail.com> <20120710214326.GA6315@momjian.us> <1418162132845-5829814.post@n5.nabble.com> <25623.1418162623@sss.pgh.pa.us>

* 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