Re: [PATCH] Implement uuid_version()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Implement uuid_version()
Дата
Msg-id 32713.1554737675@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Implement uuid_version()  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> My biggest gripe about uuid-ossp is that the name is stupid.  I wish
> we could see our way clear to renaming that extension to just 'uuid',
> because as J.L. says, virtually nobody's actually compiling against
> the OSSP library any more.

+1

There's no ALTER EXTENSION RENAME, and I suppose there can't be because
it would require editing/rewriting on-disk files that the server might
not even have write permissions for.  But your idea of an "update"
script that effectively moves everything over into a new extension
(that's physically installed but not present in current database)
might work.

Another way to approach it would be to have a script that belongs
to the new extension and what you do is
    CREATE EXTENSION uuid FROM "uuid_ossp";
to perform the migration of the SQL objects.

Either way, we'd be looking at providing two .so's for some period
of time, but fortunately they're small.

            regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [PATCH] Implement uuid_version()
Следующее
От: Fabien COELHO
Дата:
Сообщение: pgbench - add option to show actual builtin script code