aggregates other than count accpet *

Started by Kris Jurkaover 21 years ago2 messagesbugs
Jump to latest
#1Kris 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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Kris Jurka (#1)
Re: aggregates other than count accpet *

Kris Jurka <books@ejurka.com> writes:

PostgreSQL allows aggregates other than COUNT to accept * as the arugment.

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

regards, tom lane