Re: Configurable location for extension .control files - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Configurable location for extension .control files
Date
Msg-id 3505.1370376443@sss.pgh.pa.us
Whole thread Raw
In response to Re: Configurable location for extension .control files  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: Configurable location for extension .control files
Re: Configurable location for extension .control files
List pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> The only argument with a good bit of merit I can see is that it could
> lead to unexpected extensions being loaded if e.g. hstore isn't
> installed in the normal extension directory but another extension with
> the same name somewhere else.

And just think about the fun you could have with inconsistent files
named hstore--1.0--1.1.sql in different directories.  The extension
feature is really really not designed to be able to search a path of
directories.

It presumably wouldn't be terribly hard for Oliver to patch the sources
to look in something other than SHAREDIR/extension/, but I'm not sure
I see the point of inventing a platform-specific name for that
directory; seems like it would mostly just confuse users coming from
other platforms.  Instead, what about not treating that directory as
part of the base package in the first place?  If you've got the concept
of directories that multiple packages can install into, just make this
be one of those.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] Add support for TAS/S_UNLOCK for aarch64
Next
From: Tom Lane
Date:
Subject: Re: Improved error message for CREATE EXTENSION patch...