Re: psql, 7.4, and the \d command

From: Mike Nolan <nolan(at)gw(dot)tssi(dot)com>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: blakjak(at)blakjak(dot)sytes(dot)net (Brendan Jurd), pgsql-general(at)postgresql(dot)org (PostgreSQL-general)
Subject: Re: psql, 7.4, and the \d command
Date: 2004-02-17 15:30:02
Message-ID: 200402171530.i1HFU3Ck028839@gw.tssi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> This has been discussed before. I think the reason for not doing it
> has been the difficulty of coming up with a useful warning that explains
> what will work and what won't.

I think all that is necessary is to expand the startup banner to show
what the back end is:

Welcome to psql 7.4.1, the PostgreSQL interactive terminal.
Connected to PostgreSQL 7.3.4 server[(at)host]

This is similar to what some other front ends (ie, Oracle) do.
it may not be all that helpful in terms of explaining what will and what
won't work, but it unobtrusively identifies the back end for those who
need or want that information.

I would only display the host information if psql was called with -h.
--
Mike Nolan

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2004-02-17 16:10:42 Re: Replication in postgresql
Previous Message Brendan Jurd 2004-02-17 15:27:33 Re: psql, 7.4, and the \d command