Re: [HACKERS] Syncing sql extension versions with shared library versions

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [HACKERS] Syncing sql extension versions with shared library versions
Дата
Msg-id CA+TgmobSYLen8NVD4U5qbSeeHjAoSBzxOs-wSNn43tXHzBg4JA@mail.gmail.com
обсуждение исходный текст
Ответ на [HACKERS] Syncing sql extension versions with shared library versions  (Mat Arye <mat@timescaledb.com>)
Ответы Re: [HACKERS] Syncing sql extension versions with shared library versions  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [HACKERS] Syncing sql extension versions with shared library versions  (Mat Arye <mat@timescaledb.com>)
Список pgsql-hackers
On Fri, Jul 21, 2017 at 4:17 PM, Mat Arye <mat@timescaledb.com> wrote:
> (I
> want to avoid having to keep backwards-compatibility for all functions in
> future shared-libraries).

Are you sure that's a good idea?  It seems like swimming upstream
against the design.  I mean, instead of creating a dispatcher library
that loads either v1 or v2, maybe you could just put it all in one
library, add a "v1" or "v2" suffix to the actual function names where
appropriate, and then set up the SQL definitions to call the correct
one.  I mean, it's the same thing, but with less chance of the dynamic
loader ruining your day.

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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] Error while copying a large file in pg_rewind
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Syncing sql extension versions with shared library versions