Re: Multi calendar system for pgsql - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Multi calendar system for pgsql
Date
Msg-id 8234.1234975104@sss.pgh.pa.us
Whole thread Raw
In response to Multi calendar system for pgsql  (Mohsen Alimomeni <m.alimomeni@gmail.com>)
List 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 by date:

Previous
From: Robert Treat
Date:
Subject: Re: pg_migrator progress
Next
From: Tom Lane
Date:
Subject: Re: The science of optimization in practical terms?