some psql table output flaws

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: some psql table output flaws
Date: 2013-02-01 20:22:33
Message-ID: 510C2409.9070706@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I have encountered two unrelated flaws in the psql table output.

First, when using unaligned vertical mode (\a \x on), there is always an
empty line after the last record. This also means that an empty result
set prints an empty line, instead of nothing.

Second, when using aligned vertical mode (\x on), an empty result set
prints "(No rows)". That's fine, but there is no way to turn this off.
I intuitively attempted to use \t (tuples only), but that had no
effect. \t doesn't really have a meaning in vertical mode, because the
field names are always printed, but I think it could/should have the
effect of shutting off footer lines.

Patch for both issues attached.

Attachment Content-Type Size
pg-psql-fixes.patch text/plain 894 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Erik Rijkers 2013-02-01 21:03:32 Re: some psql table output flaws
Previous Message Tom Lane 2013-02-01 20:21:52 Re: cannot move relocatable extension out of pg_catalog schema