initdb detecting date order - Mailing list pgsql-patches

From Peter Eisentraut
Subject initdb detecting date order
Date
Msg-id 200512090237.20353.peter_e@gmx.net
Whole thread Raw
Responses Re: initdb detecting date order
List pgsql-patches
Here's a patch for initdb detecting the date order of the lc_time locale
and initializing the datestyle parameter of the new cluster
accordingly.

This relies on feeding an umambiguous date through strftime("%x") and
checking in which order things come out.  (This was suggested to me by
Martin Pitt a while ago.)  I've tested this with a number of locales
and it seems to work.  Does anyone see a problem with this?

(Documentation and perhaps an initdb progress notification line is of
course still missing.)

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

Attachment

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: AIX FAQ update
Next
From: Tom Lane
Date:
Subject: Re: initdb detecting date order