Re: Multi calendar system for pgsql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mohsen Alimomeni <m(dot)alimomeni(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Multi calendar system for pgsql
Date: 2009-02-18 16:38:24
Message-ID: 8234.1234975104@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Mohsen Alimomeni <m(dot)alimomeni(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-02-18 16:46:41 Re: The science of optimization in practical terms?
Previous Message Robert Treat 2009-02-18 16:21:48 Re: pg_migrator progress