From: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com> |
---|---|
To: | javier garcia - CEBAS <rn001(at)cebas(dot)csic(dot)es> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: creating sequential timestamp |
Date: | 2004-03-08 21:40:50 |
Message-ID: | Pine.LNX.4.33.0403081439530.2899-100000@css120.ihs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, 8 Mar 2004, javier garcia - CEBAS wrote:
> Hi;
> Is it possible to directly create postgres tables with a timestamp column
> with some specific interval and within a specific range.
> For example every 5 minutes and between the beginning of 1999 and the end of
> 2003?
>
> I just need this column.
Sounds like you might want to rethink your data structure. I would
suggest using a table with these dates in it as a kind of cross tab table.
Or look in the /contrib/tablefunc directory for a crosstab function that
may make what you're trying to do easy.
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2004-03-08 21:47:52 | Re: creating sequential timestamp |
Previous Message | Shelby Cain | 2004-03-08 21:30:04 | Optimizer produces wildly different row count estimate depending on casts |