Re: psql \d option list overloaded

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
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 09:29:23
Message-ID: Pine.LNX.4.44.0401111012020.13405-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-general pgsql-hackers

On Sun, 11 Jan 2004, Peter Eisentraut wrote:

> 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.

Yes, pushing the \xx commands into the server makes no sense to me at all.

The commands in psql are very specific for psql. I don't see why you ever
want to do SHOW TABLES except at the command line in psql. If your
application wants to find all tables in the database, then we have the
standard sql way, which is the information schema.

The argument that "show tables" is easier to remember then \dt might be
true, but to me that just means that we should make psql better by adding
\describe_table and such, not to push psql code into the server.

Making a couple of views that are pg specific to make it easier to get
information out could be good however. The information schema does not
always contain all information one might want. Making specialised SQL
commands for it I'm not in favor of at all.

--
/Dennis Björklund

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message Alexey Borzov 2004-01-11 12:31:20 Website suggestions (long)
Previous Message Chris Travers 2004-01-11 09:22:59 MySQL licensing, was Will Open Source be forced to go Proprietary

Browse pgsql-general by date

  From Date Subject
Next Message Dario Ottaviano 2004-01-11 09:29:56 Case sensitivity
Previous Message Peter Eisentraut 2004-01-11 01:13:17 Re: psql \d option list overloaded

Browse pgsql-hackers by date

  From Date Subject
Next Message Jean-Michel POURE 2004-01-11 13:33:54 Re: [GENERAL] Is my MySQL Gaining ?
Previous Message Peter Eisentraut 2004-01-11 01:13:17 Re: psql \d option list overloaded