Re: BUG #12792: I can do a SELECT with no fields - Mailing list pgsql-bugs

From Kevin Grittner
Subject Re: BUG #12792: I can do a SELECT with no fields
Date
Msg-id 1477540789.2804006.1424445654829.JavaMail.yahoo@mail.yahoo.com
Whole thread Raw
In response to BUG #12792: I can do a SELECT with no fields  (lr@pcorp.us)
List pgsql-bugs
"lr@pcorp.us" <lr@pcorp.us> wrote:

> I'm not sure if this is a bug or not,

It it's not.  See the release notes:

http://www.postgresql.org/docs/9.4/interactive/release-9-4.html

| Allow SELECT to have an empty target list (Tom Lane)
|
| This was added so that views that select from a table with zero
| columns can be dumped and restored correctly.

For a more detailed explanation of why this feature was added, see
the commit message:

http://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=1b4f7f93b4693858cb983af3cd557f6097dab67b

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #12792: I can do a SELECT with no fields
Next
From: Francisco Olarte
Date:
Subject: Re: BUG #12785: server process (PID 2872) was terminated by exception 0xC0000005