On Mon, Jan 14, 2013 at 10:47:58PM -0500, Gurjeet Singh wrote:
> Interesting to note that SELECT * FROM table_with_zero_cols does not complain
> of anything.
> postgres=# select * from test1;
> (0 rows)
> This I believe result of the fact that we allow user to drop all columns of a
> On a side note, Postgres allows me to do this (which I don't think is a bug or
> useless): I inserted some rows into a table, and then dropped the columns. The
> resulting table has no columns, but live rows.
> postgres=# select * from test_0_col_table ;
> (200000 rows)
I found this funny.
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
+ It's impossible for everything to be true. +
In response to
pgsql-hackers by date
|Next:||From: Bruce Momjian||Date: 2013-01-15 19:18:40|
|Subject: Re: count(*) of zero rows returns 1|
|Previous:||From: Peter Eisentraut||Date: 2013-01-15 19:16:01|
|Subject: pkg-config files for libpq and ecpg|