Re: Setting week starting day

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Jorge Godoy <jgodoy(at)gmail(dot)com>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Richard Huxton <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Setting week starting day
Date: 2007-03-09 15:36:51
Message-ID: 20070309153651.GF23704@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Mar 08, 2007 at 20:32:22 -0300,
Jorge Godoy <jgodoy(at)gmail(dot)com> wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
>
> As I said, it is easy with a function. :-) I was just curious to see if we
> had something like Oracle's NEXT_DAY function or something like what I
> described (SET BOW=4; -- makes Thursday the first day of week):

If you are actually using "date" you can get the effect you want by adding
a constant integer to the date in the date_trunc function. That seems
pretty easy.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jorge Godoy 2007-03-09 15:41:28 Re: one-to-one schema design question and ORM
Previous Message Galantucci Giovanni 2007-03-09 15:36:08 R: Error code associated to "could not open relation with OID ..."