Re: [BUGS] Table name used as aggregate argument

2005-02-07 Thread Tom Lane
Dennis Bjorklund <[EMAIL PROTECTED]> writes: > 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? No. This is a perfectly good, if somewhat historical, spelling of SELECT cou

[BUGS] Table name used as aggregate argument

2005-02-07 Thread Dennis Bjorklund
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 ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ