Re: Locating sharedir in PostgreSQL on Windows - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Locating sharedir in PostgreSQL on Windows
Date
Msg-id 4663.1196116217@sss.pgh.pa.us
Whole thread Raw
In response to Re: Locating sharedir in PostgreSQL on Windows  ("Dave Page" <dpage@postgresql.org>)
Responses Re: Locating sharedir in PostgreSQL on Windows  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
"Dave Page" <dpage@postgresql.org> writes:
> Yes, I know. Peter seemed to be saying that nothing except postgres
> itself should be in *any* of the installation directories

Yeah, that's what I think he said too, but it strikes me as a completely
bogus policy --- what about contrib modules or stuff from pgfoundry
or any random user-written module that was built with PGXS?  All that
stuff happily drops files under $libdir and $sharedir, and I see no good
argument why it shouldn't.

There is fair room for argument about whether $sharedir is the
appropriate place for installation-specific config files though.
Those should probably live in the same place as postgresql.conf
and friends, ie, typically but not necessarily $PGDATA.  It doesn't
look like SelectConfigFiles() saves the config directory name anyplace
where an add-on module could get at it.  We could perhaps fix that for
8.3, but it won't help Mark if he insists on a backwards-compatible
solution.  I suppose he could copy ConfigFileName and strip the last
component from it?
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Dave Page"
Date:
Subject: Re: Locating sharedir in PostgreSQL on Windows
Next
From: "Brendan Jurd"
Date:
Subject: Re: [GENERAL] Empty arrays with ARRAY[]