aggregates other than count accpet *

Поиск
Список
Период
Сортировка
Искать

aggregates other than count accpet *

От:
Kris Jurka <books@ejurka.com>
Дата:
PostgreSQL allows aggregates other than COUNT to accept * as the arugment.  
Combined with the transformation of * -> 1 you get odd results from SELECT 
MIN(*), MAX(*) FROM tab; instead of an error.

Kris Jurka

Re: aggregates other than count accpet *

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Kris Jurka  writes:
> PostgreSQL allows aggregates other than COUNT to accept * as the arugment.  

This is not a bug, it's extensibility ;-)

			regards, tom lane
FAQ