Re: psql \d option list overloaded

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Dennis Björklund <db(at)zigo(dot)dhs(dot)org>
Cc: Kevin Brown <kevin(at)sysexperts(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql \d option list overloaded
Date: 2004-01-11 01:13:17
Message-ID: 200401110213.17581.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-general pgsql-hackers

Dennis Björklund wrote:
> > What is wrong with
> >
> > SELECT * FROM information_schema.tables;
>
> The result is very hard to read since it's so much of it (try column
> instead of tables). The \xx commands do some nice formatting you
> don't get from the above.

This is an interesting point to remember for those that are advocating
pushing psql's queries into the backend. psql's queries are optimized
for monospaced text screens of limited size. Unless someone else is
writing a command-line client, there would be little reuse effect,
because any given application will have different display requirements.

(Another problem with pushing psql's queries into the backend is that
much of the output that psql makes is not a single table. Sometimes
there is more than one table, or the information is in the table
footers. It'd be quite complicated to make the backend produce those
kinds of displays.)

In response to

Responses

Browse pgsql-advocacy by date

  From Date Subject
Next Message Christopher Browne 2004-01-11 04:28:49 Re: Will Open Source be forced to go Proprietary
Previous Message Peter Eisentraut 2004-01-11 01:07:25 Re: psql \d option list overloaded

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Bjorklund 2004-01-11 09:29:23 Re: psql \d option list overloaded
Previous Message Peter Eisentraut 2004-01-11 01:07:25 Re: psql \d option list overloaded

Browse pgsql-hackers by date

  From Date Subject
Next Message Dennis Bjorklund 2004-01-11 09:29:23 Re: psql \d option list overloaded
Previous Message Peter Eisentraut 2004-01-11 01:07:25 Re: psql \d option list overloaded