Re: contrib loose ends: 9.0 to 9.1 incompatibilities
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@postgresql.org
Date: 2011-02-16T17:30:55Z
Lists: 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