Re: ALTER EXTENSION ... UPGRADE; - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: ALTER EXTENSION ... UPGRADE;
Date
Msg-id 4D02CDBF.4080006@agliodbs.com
Whole thread Raw
In response to Re: ALTER EXTENSION ... UPGRADE;  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom,

> I'd much rather expect the extension author to explicitly support each
> pair of (from, to) version numbers that he's prepared to deal with.
> If he can build those update scripts as simple concatenations of
> single-step scripts, great; but let's not hard-wire the assumption that
> that approach MUST work.

That's an n^2 problem.

However, I don't see any obvious way to avoid it.

We would want to support some wildcarding, though, just to avoid having
1,000 version-to-version files in every extension when a lot of the
upgrade actions might be generic.  Of course, in order to do
wildcarding, we need to mandate a version numbering system ...

--                                  -- Josh Berkus                                    PostgreSQL Experts Inc.
                        http://www.pgexperts.com
 


pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: ALTER EXTENSION ... UPGRADE;
Next
From: Daniel Loureiro
Date:
Subject: Re: Anyone for SSDs?