From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Firthouse banu <penguinsfairy(at)gmail(dot)com> |
Cc: | "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Printing time stamp |
Date: | 2021-10-07 18:31:09 |
Message-ID: | 20211007183109.GC5476@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Thu, Sep 23, 2021 at 05:17:14PM +0530, Firthouse banu wrote:
> Thanks you all for clarifying my doubts so far.
>
> Here is another one.
>
> Scenario
>
> How to print time stamp for every 60 seconds like 60 seconds interval between
> given start and end date
How is this?
SELECT generate_series('2021-01-01 00:00:00', '2021-01-02 00:00:00', '1 minute'::interval);
--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com
If only the physical world exists, free will is an illusion.
From | Date | Subject | |
---|---|---|---|
Next Message | soumik.bhattacharjee | 2021-10-08 08:00:34 | RE: Commit and Exception Block |
Previous Message | soumik.bhattacharjee | 2021-10-07 09:11:26 | Commit and Exception Block |