Skip site navigation (1) Skip section navigation (2)

Re: adding operators

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Islam Hegazy <islheg(at)gmail(dot)com>
Cc: Brendan Jurd <direvus(at)gmail(dot)com>, darcy(at)druid(dot)net, pgsql-hackers(at)postgresql(dot)org
Subject: Re: adding operators
Date: 2007-10-01 18:09:01
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

Islam Hegazy wrote:
> Thanks for this information. It was really helpful.
> Another problem that is facing me is altering existing functions. For 
> example, what if I want to change the execution of the SUM function to 
> work as follows:
> select sum(a)
> from mytable w(5);
> which means to sum only 5 records or records that arrived in the last 
> 5 minutes. Do I need to change the core code of PostgreSQL to 
> implement such thing?

The first can be done with a limit clause, the second using a where 
clause on a timestamp column - there is no good case that I can see for 
either usage, not to mention the question of standards compatibility.



In response to

pgsql-hackers by date

Next:From: Adrian MaierDate: 2007-10-01 18:12:29
Subject: Re: IDE
Previous:From: Heikki LinnakangasDate: 2007-10-01 17:42:41
Subject: Re: First steps with 8.3 and autovacuum launcher

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group