Re: "create function... depends on extension..." not supported. Why?

Поиск
Список
Период
Сортировка
От Bryn Llewellyn
Тема Re: "create function... depends on extension..." not supported. Why?
Дата
Msg-id 89961B5A-92D2-4419-BB03-0D07DAD5037E@yugabyte.com
обсуждение исходный текст
Ответ на Re: "create function... depends on extension..." not supported. Why?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: "create function... depends on extension..." not supported. Why?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
david.g.johnston@gmail.com wrote:

bryn@yugabyte.com wrote:

Note: I’m asking because the answer to the question “Why isn’t X supported?” is always useful. For example, if supporting it would imply a logical impossibility that I’m too slow to spot, it helps me when someone explains what I failed to realize. Equally, it helps me to know when the answer is “It’s just a historical accident. It could have been supported. But, now that it isn’t, it doesn’t seem worth the effort to bridge that gap” because this shows me that my existing mental model is sound.

Here is the commit that brought the feature into existence (it includes a link to the archives for discussion from which you can read or infer things).

https://github.com/postgres/postgres/commit/f2fcad27d59c8e5c48f8fa0a96c8355e40f24273

The discussion has diverging threads and very many turns. I think that I managed to skim through the entire tree. As I read it, the discussion was entirely about the semantics of the proposed dependency of a function (or procedure) upon an extension. The idea to establish such a dependency using “alter function” came up quite early in the discussion. It seems that establishing it at “create function” time was never considered.

Unless anybody corrects me, I’ll conclude that it’s perfectly feasible to establish the dependency at “create function” time. This would meet an obvious niceness goal (symmetry and guessability). It would also increase the possibility for component rule re-use in the presentation of the syntax rules. But I don’t s’pose that the effort of changing anything here would be cost-effective.

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

Предыдущее
От: Rich Shepard
Дата:
Сообщение: Re: Fresh eyeballs needed: input into error [FIXED]
Следующее
От: Tom Lane
Дата:
Сообщение: Re: "create function... depends on extension..." not supported. Why?