Skip site navigation (1) Skip section navigation (2)

Minor pedantry for "help" text

From: Neil Conway <neilc(at)samurai(dot)com>
To: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Minor pedantry for "help" text
Date: 2008-06-09 07:25:13
Message-ID: 1212996313.10853.11.camel@goldbach (view raw or flat)
Thread:
Lists: pgsql-patches
Attached is a patch that makes some minor changes to the text emitted by
the new "help" command. Previous output:

postgres=# help

You are using psql, the command-line interface to PostgreSQL.
	\? for psql help
	\h or \help for SQL help

	\g or ";" to execute a query
	\q to quit psql

	\copyright to view the copyright

postgres=# 

New output:

postgres=# help
You are using psql, the command-line interface to PostgreSQL.
Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit
postgres=#

The newlines in the previous text were inconsistent with psql error
message style elsewhere, aside from being distracting. The advice on
commands to enter next was also just emitted, without actually telling
the user that these are possible inputs. Essentially the text was a
regression from the text we've always used in the startup banner, so I
just re-instituted the old text.

-Neil, doing his best to suppress his aesthetic objection to having
"help" be valid psql input in the first place


Attachment: psql_help_text-2.patch
Description: text/x-patch (1.0 KB)

Responses

pgsql-patches by date

Next:From: Jan UrbaƄskiDate: 2008-06-09 21:45:02
Subject: minor ts_type.h comment fix
Previous:From: Alvaro HerreraDate: 2008-06-08 22:46:49
Subject: Re: GIN improvements

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group