From: | Thom Brown <thom(at)linux(dot)com> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-committers <pgsql-committers(at)postgresql(dot)org> |
Subject: | Re: pgsql: Allow empty target list in SELECT. |
Date: | 2015-03-25 09:31:54 |
Message-ID: | CAA-aLv5tWq8TOQZ=AZv3sam9RoTAA05yecLDXqzROjxDxsHMKA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
On 25 March 2015 at 01:04, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> On Fri, Mar 20, 2015 at 08:25:50AM -0400, Bruce Momjian wrote:
> > > regression=# create table foo();
> > > CREATE TABLE
> > > regression=# insert into foo default values;
> > > INSERT 0 1
> > > regression=# insert into foo default values;
> > > INSERT 0 1
> > > regression=# select * from foo;
> > > --
> > > (2 rows)
> > >
> > > regression=# \x on
> > > Expanded display is on.
> > > regression=# select * from foo;
> > > (No rows)
> >
> > I have developed a patch to fix this, e.g.:
> >
> > test=> select * from foo;
> > --
> > (2 rows)
> >
> > test=> \x
> > Expanded display is on.
> > test=> select * from foo;
> > (2 rows)
> >
> > I used the same footer function every other output format was using.
> > Patch attached.
>
> Patch applied.
>
Thanks.
--
Thom
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2015-03-25 17:17:40 | pgsql: Fix gram.y comment to match reality |
Previous Message | Bruce Momjian | 2015-03-25 02:35:23 | pgsql: Revert commit 843cd0bfe6246d94d9b34a7f36bbb76fdba87b74 |