Re: day of week - Mailing list pgsql-hackers

From Tom Lane
Subject Re: day of week
Date
Msg-id 14458.960251442@sss.pgh.pa.us
Whole thread Raw
In response to Re: day of week  (Don Baccus <dhogaza@pacifier.com>)
List pgsql-hackers
Don Baccus <dhogaza@pacifier.com> writes:
> At 10:52 PM 6/5/00 +0200, Karel Zak wrote:
>> For to_char() I use POSIX definition of 'tm' where week start on Sunday.
>> 
>> Is it right? (Exuse me, I see archive, but without some effect...).
>> 
>> Or we will support both styles?

> to_char() gives the same answer with Oracle, as it is supposed to
> and as you intended it to.

I don't think we should change to_char(), but it might make sense
to create a SET variable that controls the start-of-week day for
date_part(); or just have several variants of 'dow' for different
start-of-week days.  Different applications might reasonably want
different answers depending on what conventions they have to deal
with outside of Postgres.

Thomas Lockhart is usually our lead guy on datetime-related issues.
Let's see what he thinks when he gets back from vacation (he's gone
till next week IIRC).
        regards, tom lane


pgsql-hackers by date:

Previous
From: Karel Zak
Date:
Subject: Re: day of week
Next
From: Peter Eisentraut
Date:
Subject: Re: AW: AW: Proposal for enhancements of privilege system