initdb detecting date order

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема initdb detecting date order
Дата
Msg-id 200512090237.20353.peter_e@gmx.net
обсуждение исходный текст
Ответы Re: initdb detecting date order  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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/

Вложения

В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: AIX FAQ update
Следующее
От: Tom Lane
Дата:
Сообщение: Re: initdb detecting date order