Re: Configuration include directory

From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: Selena Deckelmann <selena(at)chesnok(dot)com>
Cc: Noah Misch <noah(at)leadboat(dot)com>, Greg Smith <greg(at)2ndquadrant(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Configuration include directory
Date: 2012-09-24 08:41:01
Message-ID: 50601C9D.8000806@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 21.09.2012 00:10, Selena Deckelmann wrote:
> Hello!
>
> I've spent a little time with this patch and have attached revision 6.
> Thanks, Noah, for a fantastically detailed review.
>
> The only thing I didn't do that Noah suggested was run pgindent on
> guc-file.l. A cursory search did not reveal source compatible with my
> operating system for 'indent'. If someone points me to it, I'd happily
> also comply with the request to reindent. And document how to do that
> on my platform(s). :)
>
> I did just remove the references to the Apache project etc. I agree
> that providing best practices is good, but I'm skeptical about
> including best practices piecemeal. Adding it to earlier tutorial
> sections would probably be a bit more visible IMO.

This seems pretty much ready to commit. One tiny detail that I'd like to
clarify: the docs say:

> Multiple files within an include directory are ordered by an alphanumeric sorting, so that ones beginning with numbers are considered before those starting with letters.

To be more precise, the patch uses strcmp() for the comparisons. That's
also what apache seems to do, although I couldn't find it being
mentioned explicitly in their docs. It's true that numbers are sorted
before letters, but should we also mention that upper-case letters are
sorted before lower-case ones, and that sorting of non-ASCII characters
depends on the encoding, in often surprising ways? Is there a better
term for what strcmp() does? ASCII order? Is there precedence somewhere
else in the PostgreSQL codebase or docs for that?

- Heikki

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kohei KaiGai 2012-09-24 08:49:16 Re: [v9.3] writable foreign tables
Previous Message Boszormenyi Zoltan 2012-09-24 08:29:22 Re: [PATCH] lock_timeout and common SIGALRM framework