On 2015-08-05 20:09, Alvaro Herrera wrote:
> Josh Berkus wrote:
>> On 08/05/2015 10:46 AM, Alvaro Herrera wrote:
>>> 1. Add the functions as a builtins.
>>> This is what the current patch does. Simon seems to prefer this,
>>> because he wants the function to be always available in production;
>>> but I don't like this option because adding functions as builtins
>>> makes it impossible to move later to extensions.
>>> Bruce doesn't like this option either.
>>
>> Why would we want to move them later to extensions?
>
> Because it's not nice to have random stuff as builtins.
>
Extensions have one nice property, they provide namespacing so not
everything has to be in pg_catalog which already has about gazilion
functions. It's nice to have stuff you don't need for day to day
operations separate but still available (which is why src/extensions is
better than contrib).
-- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training &
Services