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

From: Schwaighofer Clemens <clemens(dot)schwaighofer(at)tequila(dot)jp>
To: pgsql-general(at)postgresql(dot)org
Subject: How to show the current schema or search path in the psql PROMP
Date: 2010-06-09 08:52:49
Message-ID: AANLkTinX72s4nCsC-ct3RTHbrerzedaFzh_dX25RxD6J@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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 ...

--
★ Clemens 呉 Schwaighofer
★ IT Engineer/Web Producer/Planning
★ E-Graphics Communications SP Digital
★ 6-17-2 Ginza Chuo-ku, Tokyo 104-8167, JAPAN
★ Tel: +81-(0)3-3545-7706
★ Fax: +81-(0)3-3545-7343
http://www.e-gra.co.jp

This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is
privileged, confidential and/or otherwise protected from disclosure.
If you received this e-mail in error, any review, use, dissemination,
distribution or copying of this e-mail is strictly prohibited.
Please notify us immediately of the error via e-mail to
disclaimer(at)tbwaworld(dot)com and please delete the e-mail from your system, retaining no copies in any media.
We appreciate your cooperation.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dimitri Fontaine 2010-06-09 09:38:56 Re: Cognitive dissonance
Previous Message Thom Brown 2010-06-09 08:48:12 Re: Some insight on the proper SQL would be appreciated