Re: TODO items for window functions - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: TODO items for window functions
Date
Msg-id 20081231120211.GB3809@alvh.no-ip.org
Whole thread Raw
In response to Re: TODO items for window functions  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: TODO items for window functions  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Heikki Linnakangas escribió:
> Tom Lane wrote:
>> 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.
>
> That looks like "OVER window" is associated with the "integer", like  
> DEFAULT. I don't have any better suggestions, though.
                        List of functions   Schema   |   Name    | Result data type |        Argument data
types------------+-----------+------------------+-----------------------------------pg_catalog | nth_value | anyelement
     | (anyelement, integer) OVER window
 


-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pg_pltemplate entries for external PLs
Next
From: "Stephen R. van den Berg"
Date:
Subject: Lockfree hashtables