Find all the dates in the calendar week? - Mailing list pgsql-general

From Stephane Bortzmeyer
Subject Find all the dates in the calendar week?
Date
Msg-id 200007060728.JAA22548@ezili.sis.pasteur.fr
Whole thread Raw
Responses RE: Find all the dates in the calendar week?  ("Andrew Snow" <als@fl.net.au>)
Re: Find all the dates in the calendar week?  (Stephane Bortzmeyer <bortzmeyer@pasteur.fr>)
List pgsql-general
I have a table of events with a column which stores datetimes. I want to check
if a datetime is inside the current calendar week (i.e. from the previous
monday to the next sunday). The purpose is to SELECT all the events of the
week.

I cannot find a way to do it in SQL? Did I miss something?

[If there is no SQL way, I'll hack it in a Perl script. Code or suggestions
welcome.]



pgsql-general by date:

Previous
From: Stephane Bortzmeyer
Date:
Subject: Re: function for date difference ?
Next
From: Mike Mascari
Date:
Subject: Re: Partial indices