Re: Unusual psql behavior

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Unusual psql behavior
Date: 2015-08-27 20:38:10
Message-ID: 12501.1440707890@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> writes:
> I am seeing something I cannot figure out when using psql.

> This is what I see:

> psql (9.4.4)
> Type "help" for help.

> production_5432=> select from cell_per ;
> --
> (56 rows)

I believe this is the expected output for a table with 56 rows and zero
columns. (It's probably a bug that psql doesn't display that as 56
empty lines, but nobody's cared enough to fix it.) Since you did not
include anything in "select", you've got a zero-column result table.

> This is when I am logged in as system user aklaver. If I log in as
> another user on the same machine I see the query results. I see no
> differences in the user environments that would account for this.

You didn't say what query results you expected to get, but it's hard
to see how you get anything but zero columns from this query.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2015-08-27 20:48:21 Re: Unusual psql behavior
Previous Message Adrian Klaver 2015-08-27 20:30:15 Unusual psql behavior