On Thu, Mar 08, 2007 at 20:32:22 -0300, Jorge Godoy <[EMAIL PROTECTED]> wrote: > Alvaro Herrera <[EMAIL PROTECTED]> 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. ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend