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

From: Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl>
To: Clemens Schwaighofer <clemens_schwaighofer(at)e-gra(dot)co(dot)jp>
Cc: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, 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 10:10:24
Message-ID: F0F09869-7B12-4DBB-B849-62DE8B8E9082@solfertje.student.utwente.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 14 Jun 2010, at 2:02, Clemens Schwaighofer wrote:

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

That only saves you a few key-presses though. Is your psql built with libreadline? Without it you don't get TAB-completion, that would be a nuisance!

Alban Hertroys

--
Screwing up is an excellent way to attach something to the ceiling.

!DSPAM:737,4c160039286219954085656!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Schwaighofer Clemens 2010-06-14 10:14:58 Re: How to show the current schema or search path in the psql PROMP
Previous Message Janning 2010-06-14 09:49:08 Re: checkpoint spikes