max(*)

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: max(*)
Date: 2006-05-26 08:22:21
Message-ID: 4476BABD.4080100@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Shouldn't

SELECT max(*) FROM foo;

give an error? Instead it's executed like

SELECT max(1) FROM foo;

Just like count(*) is executed as count(1).

Something for the TODO or is it a feature?

ps. I know it's not an important case since no one sane would try to
calculate max(*), but still.

/Dennis

Responses

  • Re: max(*) at 2006-05-26 10:09:48 from Simon Riggs

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2006-05-26 09:59:37 Re: XLogArchivingActive
Previous Message Teodor Sigaev 2006-05-26 08:08:54 Re: GIN stuck in loop during PITR