Re: Days in month query - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Days in month query
Date
Msg-id 20050331172218.GA9042@wolff.to
Whole thread Raw
In response to Re: Days in month query  (Mark Fox <mark.fox@gmail.com>)
List pgsql-general
On Wed, Mar 30, 2005 at 16:45:43 -0700,
  Mark Fox <mark.fox@gmail.com> wrote:
>
> What I want is SELECT statement that references no tables but returns
> the days in a given month.   I'm now thinking that I might be able to
> come up with something using an IN clause and using EXTRACT, but
> haven't figured it out yet.

You can use the output of the suggested functions as input to
generate_series functions (new in 8.0) and add their output to the
start date of a month, to get a set of dates (as opposed to just a first
and last day of month).

pgsql-general by date:

Previous
From: "Bob Powell"
Date:
Subject: storing files in postgres
Next
From: "Joseph M. Day"
Date:
Subject: Re: Temporary Tables