Re: Multi calendar system for pgsql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Multi calendar system for pgsql
Дата
Msg-id 8234.1234975104@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Multi calendar system for pgsql  (Mohsen Alimomeni <m.alimomeni@gmail.com>)
Список pgsql-hackers
Mohsen Alimomeni <m.alimomeni@gmail.com> writes:
> I want to try to add a multi calendar system for pgsql. I want to know if it
> will be accepted as a patch to pgsql?

There's probably about zero chance of accepting such a thing into core,
but maybe you could do it as an add-on (pgfoundry project).

> For implementation I think it is better to add this support in date fields
> like this:
> create table tb (dt date calendar persian);

Consider specifying the calendar as a typmod, eg
create table tb (dt cdate(persian));

since the necessary extension hooks already exist for that.
        regards, tom lane


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

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: pg_migrator progress
Следующее
От: Tom Lane
Дата:
Сообщение: Re: The science of optimization in practical terms?