Re: proposal - psql - possibility to redirect only tabular output - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: proposal - psql - possibility to redirect only tabular output
Date
Msg-id CAFj8pRBhdD5uKMmJ27Uj9HfryUeg8d6xZwwVHVVPgPtyZ1pgqQ@mail.gmail.com
Whole thread Raw
In response to proposal - psql - possibility to redirect only tabular output  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: proposal - psql - possibility to redirect only tabular output
List pgsql-hackers


so 11. 4. 2020 v 8:54 odesílatel Pavel Stehule <pavel.stehule@gmail.com> napsal:
Hi

Now, the content of redirect output has two parts

1. tabular output
2. cmd tags

There is a problem with command tags, because it is specific kind of information and can be nice if can be redirected to stdout every time like \h output. There can be new psql variable like REDIRECTED_OUTPUT with possibilities (all, tabular)

What do you think about this?

or different method - set target of status row - with result (default) or stdout (terminal)

patch assigned

When I pin status rows just to stdout, then redirected output contains only query results

Regards

Pavel


Pavel
Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: relcache leak warnings vs. errors
Next
From: Julien Rouhaud
Date:
Subject: Re: relcache leak warnings vs. errors