From: Tom Lane <tgl@sss.pgh.pa.us>
To: Craig Ringer <craig@2ndQuadrant.com>
Cc: Stuart Bishop <stuart@stuartbishop.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7661: pgstattuple from unpackaged fails on old installation
Date: Thu, 15 Nov 2012 09:49:42 -0500
Message-ID: <14882.1352990982@sss.pgh.pa.us> (raw)
In-Reply-To: <50A4B334.9010209@2ndQuadrant.com>
References: <E1TYsn3-00007l-CR@wrigleys.postgresql.org>
<50A48ED6.1070102@2ndQuadrant.com>
<CADmi=6NHD9o-FxQfA7QtB=qK18DdrooTWwgp1kMS0y4SxxYMkg@mail.gmail.com>
<50A4B334.9010209@2ndQuadrant.com>
Craig Ringer <craig@2ndQuadrant.com> writes:
> On 11/15/2012 03:32 PM, Stuart Bishop wrote:
>>> That's a known issue with several of the extensions. You need to upgrade
>>> the contrib module install to the current version, *then* wrap the
>>> unpackaged contrib module into an extension with "FROM UNPACKAGED".
>> Yeah, just thought I'd stick it in the... umm... bugtracker, as so far
>> 'FROM unpackaged' has failed in 66% of up updates. Is the real
>> solution is for the foo--unpackaged--1.0.sql script to recreate
>> missing objects before adding them to the extension?
> Extensions were created because upgrading DBs that used contrib modules
> was a painful mess.
Yeah. The goal we set ourselves when making the foo--unpackaged scripts
was only to be able to upgrade from the immediately preceding form of
the contrib module. I think it's probably true that in many cases
adding CREATE OR REPLACE-type commands could allow upgrading from
earlier versions as well. But it would be a lot of work to research
what's needed and create/test a patch, and it would be work whose value
lessens with every passing day. If there's somebody out there who's
sufficiently annoyed to do that work, have at it.
regards, tom lane
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, craig@2ndQuadrant.com, stuart@stuartbishop.net
Subject: Re: BUG #7661: pgstattuple from unpackaged fails on old installation
In-Reply-To: <14882.1352990982@sss.pgh.pa.us>
References: <E1TYsn3-00007l-CR@wrigleys.postgresql.org> <50A48ED6.1070102@2ndQuadrant.com> <CADmi=6NHD9o-FxQfA7QtB=qK18DdrooTWwgp1kMS0y4SxxYMkg@mail.gmail.com> <50A4B334.9010209@2ndQuadrant.com> <14882.1352990982@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