Re: Setting week starting day - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Setting week starting day
Date
Msg-id 20070309153651.GF23704@wolff.to
Whole thread Raw
In response to Re: Setting week starting day  (Jorge Godoy <jgodoy@gmail.com>)
Responses Re: Setting week starting day  (Jorge Godoy <jgodoy@gmail.com>)
List pgsql-general
On Thu, Mar 08, 2007 at 20:32:22 -0300,
  Jorge Godoy <jgodoy@gmail.com> wrote:
> Alvaro Herrera <alvherre@commandprompt.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.

pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: security permissions for functions
Next
From: "Michael Schmidt"
Date:
Subject: Re: Beginner's Questions