Satisfy extension dependency by one of multiple extensions

Поиск
Список
Период
Сортировка
От Yeb Havinga
Тема Satisfy extension dependency by one of multiple extensions
Дата
Msg-id 4E7C73F4.1040203@gmail.com
обсуждение исходный текст
Ответы Re: Satisfy extension dependency by one of multiple extensions
Список pgsql-hackers
Hello list,

I have a use case where an extension dependency can be satisfied by one
of five other extensions. Currently I'm unable to express that in the
extension control file, since the elements from 'requires' are currently
searched on exact name match. The attached patch changes this behaviour
for list elements that end with a *, into prefix matching, so that e.g.
table* matches tablefunc.

This allows me to specify in a controlfile

requires 'vocab*'

which is satisfied by having either one of the following extensions loaded:

vocab2005
vocab2006
vocab2008
vocab2009
vocab2010

thoughts?

regards,
Yeb Havinga

--
Yeb Havinga
http://www.mgrid.net/
Mastering Medical Data


Вложения

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: patch: plpgsql - remove unnecessary ccache search when a array variable is updated
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Satisfy extension dependency by one of multiple extensions