From: | Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl> |
---|---|
To: | Schwaighofer Clemens <clemens(dot)schwaighofer(at)tequila(dot)jp> |
Cc: | "pgsql-general(at)postgresql(dot)org mailing list" <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:45:39 |
Message-ID: | 41911B3F-95EA-4B0F-A8BB-E3C63D34D1A9@solfertje.student.utwente.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 14 Jun 2010, at 12:14, Schwaighofer Clemens wrote:
> On Mon, Jun 14, 2010 at 19:10, Alban Hertroys
> <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl> wrote:
>> 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!
>
> even with readline it is quicker to type :shsh to see the current
> schema thant to type full thing.
Do you realise you only save 3 key-presses there, compared to "sh[TAB]sea[TAB];"? That's a rhetorical question btw, it's entirely up to you to define any short-cuts you want.
Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.
!DSPAM:737,4c160855286213993713473!
From | Date | Subject | |
---|---|---|---|
Next Message | Frank Church | 2010-06-14 11:28:13 | Is there a way to backup Postgres via SQL commands? |
Previous Message | Gaurav K Srivastav | 2010-06-14 10:22:08 | Trigger get dissabled |