Table name used as aggregate argument

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Table name used as aggregate argument
Date: 2005-02-07 15:47:26
Message-ID: Pine.LNX.4.44.0502071635060.4086-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

How come this work in pg (8.0 and older):

CREATE TABLE bug (x int);
SELECT count(bug) FROM bug;

Shouldn't it complain and say that "bug" is not a column?

--
/Dennis Björklund

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2005-02-07 16:11:27 Re: Table name used as aggregate argument
Previous Message Tobias Brox 2005-02-07 14:34:57 BUG #1468: psql_dump is not backward compatible