improving \dt++ in psql

Started by Filip Rembiałkowskiover 11 years ago2 messages
#1Filip Rembiałkowski
filip.rembialkowski@gmail.com

Hi

I tried to start writing a patch to add "Total Size" column to \dt++ output.

in src/bin/psql/describe.c we have this

listTables(
const char *tabtypes,
const char *pattern,
bool verbose,
bool showSystem)

I was (as a long time Pg user) dead sure that psql really sometimes
cares about the number of plus signs that you add to meta-command

So why this particular function interface has boolean "verbose" parameter?

Can't we have higher levels of "verbosiness"?

thanks,
Filip

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Filip Rembiałkowski (#1)
Re: improving \dt++ in psql

=?UTF-8?Q?Filip_Rembia=C5=82kowski?= <filip.rembialkowski@gmail.com> writes:

I was (as a long time Pg user) dead sure that psql really sometimes
cares about the number of plus signs that you add to meta-command

No, it never has done so AFAIK.

Can't we have higher levels of "verbosiness"?

I think that for most commands, two levels of verbosity are already
complicating the code in describe.c about as much as it can stand :-(
Things like the infrastructure to mark particular columns as translatable
would really need some significant work if we want to adopt multiple
pluses as a standard design element.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers