From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Stephen Frost <sfrost(at)snowman(dot)net> |
Cc: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>, Masao Fujii <masao(dot)fujii(at)gmail(dot)com> |
Subject: | Re: Showing parallel status in \df+ |
Date: | 2016-07-12 17:10:36 |
Message-ID: | 27316.1468343436@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Stephen Frost <sfrost(at)snowman(dot)net> writes:
> * Tom Lane (tgl(at)sss(dot)pgh(dot)pa(dot)us) wrote:
>> Are we satisfied with telling people to use \sf to see the source code
>> for a PL function? Or should there be another variant of \df that
>> still provides source code?
> I don't see the point in having a \df variant be the same as what \sf
> is. I could possibly see extending \sf in some way, if there are things
> that it doesn't currently do that \df does (and those things are
> useful).
I certainly agree that \sf already does what it does just fine. The
question is more about whether anyone is likely to think that removing
source code from \df+ output constitutes an important loss of
functionality.
I had some vague ideas about inventing a new \df behavior modeled on
the way that \d+ shows view definitions, that is, put the function body
in a footer rather than in the tabular output proper. So you could
imagine something like
# \df++ foo*
Schema | Name | ...
--------+------+-...
public | fooa | ...
public | foob | ...
Source code for fooa(int, text):
... body of fooa ...
Source code for foob(text, text, numeric):
... body of foob ...
But I'm not sure it's worth the trouble. And anyway we could add this
later.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Shoaib Lari | 2016-07-12 17:23:42 | Re: Fix Error Message for allocate_recordbuf() Failure |
Previous Message | Jeff Janes | 2016-07-12 16:53:30 | pg_basebackup wish list |