Re: 7.4 Wishlist

From: "Magnus Naeslund(f)" <mag(at)fbab(dot)net>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 7.4 Wishlist
Date: 2002-12-02 19:46:39
Message-ID: 05a801c29a3b$88272550$f80c0a0a@mnd
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-general pgsql-hackers

Mysql is planning on making this work:

SELECT id, @a:=COUNT(*), SUM(sum_col)/@a FROM table_name GROUP BY id.

Do we have anything like it (After a discussion with Tom i figure no).
User variables is nice, especially in these kind of queries.

Nice would be to be able to use them as in C (almost everywhere):

SELECT id, @x FROM table_name t where (@x := date_part('days'. now() -
f.created)) > 100;

As Tom said in earlier mail, it might not be that big of a win in this
case, but if uses expensive functions, it will.

Magnus

In response to

Responses

Browse pgsql-advocacy by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-12-02 20:25:34 Re: 7.4 Wishlist
Previous Message Dan Langille 2002-12-02 19:10:54 "Business of Open Source Software" conference

Browse pgsql-general by date

  From Date Subject
Next Message Steve Crawford 2002-12-02 19:56:06 Re: Arrays: determining size
Previous Message Ben 2002-12-02 19:38:20 unixtime -> timestamp with time zone

Browse pgsql-hackers by date

  From Date Subject
Next Message Joel Burton 2002-12-02 19:50:27 Re: numeric to text (7.3)
Previous Message Jeroen T. Vermeulen 2002-12-02 19:45:26 Re: 7.3: Change in cursor behaviour?