From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | David Fetter <david(at)fetter(dot)org> |
Cc: | Josh Kupershmidt <schmiddy(at)gmail(dot)com>, "Colin 't Hart" <colin(at)sharpheart(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [PATCH] psql \n shortcut for set search_path = |
Date: | 2012-07-10 16:44:22 |
Message-ID: | 23678.1341938662@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
David Fetter <david(at)fetter(dot)org> writes:
> On Tue, Jul 10, 2012 at 12:00:06PM -0400, Tom Lane wrote:
>> ISTM there was some discussion awhile back about user-definable
>> typing shortcuts in psql.
> In some sense, we already have them:
Good point:
regression=# show search_path ;
search_path
----------------
"$user",public
(1 row)
regression=# \set n 'set search_path ='
regression=# :n foo;
SET
regression=# show search_path ;
search_path
-------------
foo
(1 row)
So maybe what's needed here is a documentation example showing how you
can use a \set in ~/.psqlrc to provide this sort of functionality.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2012-07-10 16:45:39 | Re: several problems in pg_receivexlog |
Previous Message | David Fetter | 2012-07-10 16:29:33 | Re: [PATCH] psql \n shortcut for set search_path = |