Re: Any thoughts on making a psql meta-command "hide (or show alt text) if no results"?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Melvin Davidson <melvin6925(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Any thoughts on making a psql meta-command "hide (or show alt text) if no results"?
Date: 2017-08-09 01:44:52
Message-ID: CAKFQuwYDfyDjDnrL8Qoax_4ZCq+XngUSCevPukzkdzr8cUM46A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Aug 8, 2017 at 6:25 PM, Melvin Davidson <melvin6925(at)gmail(dot)com>
wrote:

>
> *​H​ave you looked at the TUPLES ONLY option?*
>
> *-t* *--tuples-only*
>
> *Turn off printing of column names and result row count footers, etc. This
> is equivalent to the \t command.*
> *https://www.postgresql.org/docs/9.4/static/app-psql.html
> <https://www.postgresql.org/docs/9.4/static/app-psql.html>*
>
>
​Hadn't pondered it for this usage. Now that I have I'd say having the
column names be visible for those few times the query returns results would
be nice.​ So, close but not quite.

I eventually saw, in one of the three descriptions for "tuples only" where
the caption is explicitly noted as being hidden in this mode. In my
proposed feature the caption, like the table it is attached to, would be
visible only conditionally.

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Hunčár 2017-08-09 10:06:48 Multixact members limit exceeded
Previous Message Melvin Davidson 2017-08-09 01:25:40 Re: Any thoughts on making a psql meta-command "hide (or show alt text) if no results"?