Re: ALTER EXTENSION ... UPGRADE;

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: ALTER EXTENSION ... UPGRADE;
Дата
Msg-id 4D02CDBF.4080006@agliodbs.com
обсуждение исходный текст
Ответ на Re: ALTER EXTENSION ... UPGRADE;  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: ALTER EXTENSION ... UPGRADE;
Следующее
От: Daniel Loureiro
Дата:
Сообщение: Re: Anyone for SSDs?