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

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>, Joshua Tolley <eggyknap(at)gmail(dot)com>, Schwaighofer Clemens <clemens(dot)schwaighofer(at)tequila(dot)jp>, 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 20:26:16
Message-ID: AANLkTikMewzDXBlcOpnAiyJAyy-tYCfa1_jc4ev-74-U@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rory Campbell-Lange 2010-06-11 20:59:07 Anyone know about PgMQ?
Previous Message Tom Lane 2010-06-11 20:18:20 Re: How to show the current schema or search path in the psql PROMP