From: | Clemens Schwaighofer <clemens_schwaighofer(at)e-gra(dot)co(dot)jp> |
---|---|
To: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>, Joshua Tolley <eggyknap(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to show the current schema or search path in the psql PROMP |
Date: | 2010-06-14 00:02:16 |
Message-ID: | AANLkTiliTKfnMz46zs1AlM9DUZo_nFkNnc-_FgC4s0y1@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Right now I added two simple wrappers in my .psqlrc
\set shsh 'SHOW search_path;'
\set setsh 'SET search_path TO'
So I can at least set and check the schema more quickly.
But seeing it in the PROMPT would be th best.
On Sat, Jun 12, 2010 at 05:26, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> wrote:
> On Fri, Jun 11, 2010 at 2:18 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> writes:
>>> But that runs a shell command, how's that supposed to get the
>>> search_path? I've been trying to think up a solution to that and
>>> can't come up with one.
>>
>> Yeah, and you do *not* want the prompt mechanism trying to send SQL
>> commands...
>
> Would a more generic way to access pgsql settings in a \set prompt be useful?
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
--
★ 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.
From | Date | Subject | |
---|---|---|---|
Next Message | John T. Dow | 2010-06-14 03:17:56 | Re: Re: Error on Windows server could not open relation base/xxx/xxx Permission denied |
Previous Message | John T. Dow | 2010-06-13 23:29:27 | Re: Re: Error on Windows server could not open relation base/xxx/xxx Permission denied |