pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Panos Kassianidis <pkas@inaccessnetworks.com>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Filtering data based on timestamp
Date: Tue, 07 Feb 2006 17:03:07 +0000
Message-ID: <43E8D2CB.2050105@archonet.com> (raw)
In-Reply-To: <43E8D09F.1090401@inaccessnetworks.com>
References: <43E8BF73.9000802@inaccessnetworks.com>
	<43E8C18B.1010206@archonet.com>
	<43E8D09F.1090401@inaccessnetworks.com>

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



view thread (3+ messages)

Message-ID: <43E8D2CB.2050105@archonet.com>
Permalink:  ../43E8D2CB.2050105@archonet.com/
Also on:    postgresql.org/message-id/43E8D2CB.2050105@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, pkas@inaccessnetworks.com
  Subject: Re: Filtering data based on timestamp
  In-Reply-To: <43E8D2CB.2050105@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox