max(*) - Mailing list pgsql-hackers

From Dennis Bjorklund
Subject max(*)
Date
Msg-id 4476BABD.4080100@zigo.dhs.org
Whole thread Raw
Responses Re: max(*)
List 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


pgsql-hackers by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: GIN stuck in loop during PITR
Next
From: Simon Riggs
Date:
Subject: Re: XLogArchivingActive