Re: Greatest Common Divisor

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Greatest Common Divisor
Дата
Msg-id CA+TgmoazTmb=dG5rSk8N8T6trqDT=RB64uBhPbJQ46cuW6gw=g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Greatest Common Divisor  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: Greatest Common Divisor
Список pgsql-hackers
On Fri, Jan 3, 2020 at 1:10 PM Merlin Moncure <mmoncure@gmail.com> wrote:
> Just stop doing it.  It's very little extra work to package an item
> into an extension and this protects your hapless users who might have
> implemented a function called gcd() that does something different.
> Ideally, the public namespace should contain (by default) only sql
> standard functions with all non-standard material in an appropriate
> extension.  Already released material is obviously problematic and
> needs more thought but we ought to at least stop making the problem
> worse if possible.

There are counter-arguments to that, though. Maintaining a lot of
extensions with only one or two functions in them is a nuisance.
Having things installed by default is convenient for wanting to use
them. Maintaining contrib code so that it works whether or not the SQL
definitions have been updated via ALTER EXTENSION .. UPDATE takes some
work and thought, and sometimes we screw it up.

I don't find any position on this topic to be without merit.

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



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [PATCH] Increase the maximum value track_activity_query_size
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Increase the maximum value track_activity_query_size