Re: How to show the current schema or search path in the psql PROMP

From: Joshua Tolley <eggyknap(at)gmail(dot)com>
To: Schwaighofer Clemens <clemens(dot)schwaighofer(at)tequila(dot)jp>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to show the current schema or search path in the psql PROMP
Date: 2010-06-11 17:23:55
Message-ID: 4c12712d.5c37e70a.7c04.4e74@mx.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 09, 2010 at 05:52:49PM +0900, Schwaighofer Clemens wrote:
> Hi,
>
> I am trying to figure out how I can show the current search_path, or
> better the first search_path entry (the active schema) in the PROMPT
> variable for psql.
>
> Is there any way to do that? I couldn't find anything useful ...

5432 josh(at)josh# SHOW search_path;
search_path
----------------
"$user",public
(1 row)

--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2010-06-11 17:29:45 Re: How to show the current schema or search path in the psql PROMP
Previous Message Greg Smith 2010-06-11 15:46:13 Re: checkpoint spikes