From:
"Robert Haas" <robertmhaas(at)gmail(dot)com>
To:
"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc:
"Andrew Dunstan" <andrew(at)dunslane(dot)net>, "David Fetter" <david(at)fetter(dot)org>, "Hitoshi Harada" <umi(dot)tanuki(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject:
Re: TODO items for window functions
Date:
2009-01-01 13:42:42
Message-ID:
603c8f070901010542o4bdc29c8if298f13d5e3e8080@mail.gmail.com (view raw or flat )
Thread:
2008-12-28 19:26:01 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-12-28 21:29:24 from "David Rowley" <dgrowley(at)gmail(dot)com>
2008-12-28 22:00:58 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-12-29 07:08:28 from "Hitoshi Harada" <umi(dot)tanuki(at)gmail(dot)com>
2008-12-29 16:44:30 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-12-29 17:54:15 from "Hitoshi Harada" <umi(dot)tanuki(at)gmail(dot)com>
2008-12-29 18:19:32 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-12-29 18:26:48 from "Hitoshi Harada" <umi(dot)tanuki(at)gmail(dot)com>
2008-12-29 18:29:58 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-12-29 16:59:51 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-12-29 17:19:55 from "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
2008-12-29 17:20:16 from Andrew Dunstan <andrew(at)dunslane(dot)net>
2008-12-29 18:00:15 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-12-29 18:12:50 from "Hitoshi Harada" <umi(dot)tanuki(at)gmail(dot)com>
2008-12-30 16:59:22 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-12-30 18:52:30 from David Fetter <david(at)fetter(dot)org>
2008-12-30 19:58:50 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-12-30 18:55:38 from "Robert Haas" <robertmhaas(at)gmail(dot)com>
2008-12-31 02:38:24 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-12-31 08:20:41 from "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
2008-12-31 11:21:19 from Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
2008-12-31 12:02:12 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2008-12-31 16:04:41 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-12-31 19:10:55 from David Fetter <david(at)fetter(dot)org>
2009-01-01 11:45:25 from Dimitri Fontaine <dfontaine(at)hi-media(dot)com>
2009-01-01 13:42:42 from "Robert Haas" <robertmhaas(at)gmail(dot)com>
2009-01-22 00:01:57 from Bruce Momjian <bruce(at)momjian(dot)us>
2009-02-04 19:52:40 from Bruce Momjian <bruce(at)momjian(dot)us>
2009-02-05 04:35:19 from Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)com>
2008-12-29 17:30:59 from "Jaime Casanova" <jcasanov(at)systemguards(dot)com(dot)ec>
2008-12-29 18:02:38 from "Hitoshi Harada" <umi(dot)tanuki(at)gmail(dot)com>
2008-12-29 18:03:12 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-12-29 17:35:47 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-12-29 19:59:16 from Jeff Davis <pgsql(at)j-davis(dot)com>
2008-12-29 18:36:39 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Lists:
pgsql-hackers
> I am not thrilled about inventing a new column for this, but how about
> a display like so:
>
> regression=# \df nth_value
> List of functions
> Schema | Name | Result data type | Argument data types
> ------------+-----------+------------------+---------------------------------
> pg_catalog | nth_value | anyelement | anyelement, integer OVER window
>
> or some other addition that only shows up when needed.
I think this whole idea is a bad one. In the current release, you can do
DROP FUNCTION Name ( Argument data types )
...and it will work. Maybe you will say that no one is doing this via
a script (which I wouldn't bet on, but it's possible) but I'm sure
people are doing it via cut and paste, because I have done exactly
this thing. Any of the various proposals for hacking up Argument data
types will make this no longer true, and somebody will get confused.
I think you should bite the bullet and add a "type" column (f for
regular function and w for window? could there be others in the
future?).
...Robert
In response to
Responses
pgsql-hackers by date
Next :From: Simon RiggsDate: 2009-01-01 17:16:08
Subject : Re: lazy_truncate_heap()
Previous :From : Dimitri FontaineDate : 2009-01-01 11:45:25
Subject : Re: TODO items for window functions