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

From Oliver Charles
Subject Re: Configurable location for extension .control files
Date
Msg-id 51AE4D0B.6050102@ocharles.org.uk
Whole thread Raw
In response to Re: Configurable location for extension .control files  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 06/04/2013 09:07 PM, Tom Lane wrote:
> 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.

I currently have postgresql patched to search getenv("PGSHAREDIR") 
before looking at SHAREDIR, which seems to work. As I said in a previous 
reply - by my understanding it should all just work without any patches, 
but for some reason the path coming out from get_share_dir is not 
relative to the executable symlink, but is relative to executable under 
that symlink. If that problem can be solved, then everything can just 
carry on working.



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Configurable location for extension .control files
Next
From: Andres Freund
Date:
Subject: Re: Configurable location for extension .control files