Re: Configuration include directory - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Configuration include directory
Date
Msg-id 26385.1321494755@sss.pgh.pa.us
Whole thread Raw
In response to Re: Configuration include directory  ("Andrew Dunstan" <andrew@dunslane.net>)
Responses Re: Configuration include directory  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
"Andrew Dunstan" <andrew@dunslane.net> writes:
> On Wed, November 16, 2011 6:45 pm, Greg Jaskiewicz wrote:
>> What will happen if I specify:
>> includedir './'

> I would vote for it only to handle plain files (possibly softlinked) in
> the named directory.

I think Greg's point is that that would lead to again reading
postgresql.conf, and then again processing the includedir directive,
lather rinse repeat till stack overflow.

Now one view of this is that we already expect postgresql.conf to only
be writable by responsible adults, so if a DBA breaks his database this
way he has nobody but himself to blame.  But still, if there's a simple
way to define that risk away, it wouldn't be a bad thing.

(Do we guard against recursive inclusion via plain old include?  If
not, maybe this isn't worth worrying about.)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Minor optimisation of XLogInsert()
Next
From: Tom Lane
Date:
Subject: Re: When do we lose column names?