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

Patch to change psql default banner

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: Patch to change psql default banner
Date: 2008-04-23 21:41:20
Message-ID: 20080423144120.1aea8ff9@commandprompt.com (view raw or flat)
Thread:
Lists: pgsql-patches
Hello,

As discussed:

http://archives.postgresql.org/pgsql-hackers/2008-04/msg01476.php

The patch does the following:

Adds an Execution line to the \? output.
Changes the help output in mainloop.c to be more useful.
Greatly reduces overall default banner output:
 * shows client version and type help for help only
   * if server doesn't match shows server version too
 * if there is a major version mismatch it throws a warning

Sincerely,

Joshua D. Drake


-- 
The PostgreSQL Company since 1997: http://www.commandprompt.com/ 
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate



Attachment: psql_patch_v5.diff
Description: text/x-patch (4.6 KB)

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2008-04-23 22:30:57
Subject: Proposed patch - psql wraps at window width
Previous:From: Tom LaneDate: 2008-04-23 15:59:11
Subject: Re: Improve shutdown during online backup, take 4

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