Re: sound extract century/millennium date_part

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: sound extract century/millennium date_part
Date: 2004-04-10 18:02:57
Message-ID: 200404101802.i3AI2vV19761@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Patch applied. Thanks.

---------------------------------------------------------------------------

Fabien COELHO wrote:
>
> Dear patchers,
>
> Please find a small patch to fix the brain damage "century" and
> "millennium" date part implementation in postgresql, both in the code and
> the documentation, so that it conforms to the official definition. If you
> do not agree with the official definition, please send your complaint to
> "pope(at)vatican(dot)org". I'm not responsible for them;-)
>
> With the previous version, the centuries and millenniums had a wrong
> number and started the wrong year. Moreover century number 0, which does
> not exist in reality, lasted 200 years. Also, millennium number 0 lasted
> 2000 years.
>
> If you want postgresql to have it's own definition of "century" and
> "millennium" that does not conform to the one of the society, just give
> them another name. I would suggest "pgCENTURY" and "pgMILLENNIUM";-)
>
> IMO, if someone may use the options, it means that postgresql is used for
> historical data, so it make sense to have an historical definition. Also,
> I just want to divide the year by 100 or 1000, I can do that quite easily.
>
> Have a nice day,
>
> --
> Fabien Coelho - coelho(at)cri(dot)ensmp(dot)fr

Content-Description:

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-04-11 00:31:16 Re: COPY for CSV documentation
Previous Message Andrew Dunstan 2004-04-10 16:24:23 COPY for CSV documentation