Re: 7.4 Wishlist

Поиск
Список
Период
Сортировка
От Magnus Naeslund(f)
Тема Re: 7.4 Wishlist
Дата
Msg-id 05a801c29a3b$88272550$f80c0a0a@mnd
обсуждение исходный текст
Ответ на 7.4 Wishlist  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Ответы Re: 7.4 Wishlist  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Jeroen T. Vermeulen"
Дата:
Сообщение: Re: 7.3: Change in cursor behaviour?
Следующее
От: Joel Burton
Дата:
Сообщение: Re: numeric to text (7.3)