Re: Filtering data based on timestamp - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Filtering data based on timestamp
Date
Msg-id 43E8D2CB.2050105@archonet.com
Whole thread Raw
In response to Filtering data based on timestamp  (Panos Kassianidis <pkas@inaccessnetworks.com>)
List pgsql-sql
Panos Kassianidis wrote:
> Thanks very much for the answer.
> Could you also please tell me how am I supposed to write such a function?
> How is date_trunc implemented so that I can extend it? In C in SQL?

I'd probably write it in plpgsql unless you need the speed.

> And where can I find its source code?

With the source - available from the website.

--   Richard Huxton  Archonet Ltd


pgsql-sql by date:

Previous
From: george young
Date:
Subject: trecherous subselect needs warning?
Next
From: Tom Lane
Date:
Subject: Re: trecherous subselect needs warning?