Re: contrib loose ends: 9.0 to 9.1 incompatibilities - Mailing list pgsql-hackers

From Robert Haas
Subject Re: contrib loose ends: 9.0 to 9.1 incompatibilities
Date
Msg-id AANLkTi=H5g8NWKUi6OAQTYkH_1j7dVF-DhrHfnRRbkPL@mail.gmail.com
Whole thread Raw
In response to contrib loose ends: 9.0 to 9.1 incompatibilities  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, Feb 16, 2011 at 12:24 PM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> On 16.02.2011 19:17, Robert Haas wrote:
>>
>> The trouble is that we have no mechanism for conditional logic in
>> upgrade scripts,...
>
> Can't you put a DO-block there? It's not pretty, but should work..

Tom has repeatedly objected to that solution on the grounds that
someone could DROP LANGUAGE plpgsql.

In practice, I am sure many third-party extensions will do just that
if we don't provide suitable core infrastructure, but not pretty
definitely covers it.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Sync Rep for 2011CF1
Next
From: Heikki Linnakangas
Date:
Subject: Re: contrib loose ends: 9.0 to 9.1 incompatibilities