Re: why two dashes in extension load files

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: why two dashes in extension load files
Дата
Msg-id 70304292-736D-4CEF-9121-CE58023B5FEB@kineticode.com
обсуждение исходный текст
Ответ на Re: why two dashes in extension load files  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Feb 14, 2011, at 8:18 PM, Tom Lane wrote:

>>
>> Yes, but the truth is that the extension name, at least, is known from the control file.
>
> Yeah, I think it's true in the current code base that we always know the
> extension name we are interested in.  However, that's no protection if
> we allow extensions to contain the separator substring.  Consider
>     foo--bar--baz.sql
> Is this an update script for foo (from version bar to version baz),
> or is it an install script for some other extension named foo--bar?
>
> Also, I think it'd be better if we didn't assume that we will always
> know the extension name when trying to make sense of a script name.
> That's the sort of assumption that will bite you on the rear eventually.

Works for me.

Best,

David



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: why two dashes in extension load files
Следующее
От: Robert Haas
Дата:
Сообщение: Re: ALTER TYPE 2: skip already-provable no-work rewrites