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

Re: Patch: psql \whoami option

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: David Christensen <david(at)endpoint(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Patch: psql \whoami option
Date: 2010-01-27 02:35:52
Message-ID: 4B5FA688.1040002@agliodbs.com (view raw or flat)
Thread:
Lists: pgsql-hackers
On 1/26/10 3:24 PM, David Christensen wrote:
> -hackers,
> 
> In the spirit of small, but hopefully useful interface improvement
> patches, enclosed for your review is a patch for providing psql with a
> \whoami command (maybe a better name is \conninfo or similar).  Its
> purpose is to print information about the current connection, by default
> in a human-readable format.  There is also an optional format parameter
> which currently accepts 'dsn' as an option to output the current
> connection information as a DSN.

oooh, I could really use this.  +1 to put it in 9.1-first CF.

however, \conninfo is probably the better name.  And what about a
postgresql function version for non-psql connections?

--Josh Berkus

In response to

Responses

pgsql-hackers by date

Next:From: Fujii MasaoDate: 2010-01-27 03:46:32
Subject: Re: testing cvs HEAD - HS/SR - missing file
Previous:From: Andrew DunstanDate: 2010-01-27 02:35:42
Subject: Re: doc error

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