Re: BUG #12792: I can do a SELECT with no fields

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: "lr(at)pcorp(dot)us" <lr(at)pcorp(dot)us>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #12792: I can do a SELECT with no fields
Date: 2015-02-20 15:20:54
Message-ID: 1477540789.2804006.1424445654829.JavaMail.yahoo@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"lr(at)pcorp(dot)us" <lr(at)pcorp(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Francisco Olarte 2015-02-20 16:54:11 Re: BUG #12785: server process (PID 2872) was terminated by exception 0xC0000005
Previous Message Tom Lane 2015-02-20 15:20:29 Re: BUG #12792: I can do a SELECT with no fields