[PATCH] psql \n shortcut for set search_path =

Colin 't Hart <colin@sharpheart.org>

From: "Colin 't Hart" <colin@sharpheart.org>
To: pgsql-hackers@postgresql.org
Date: 2012-07-10T09:09:34Z
Lists: pgsql-hackers

Attachments

Hi,

Attached please find a trivial patch for psql which adds a \n meta command
as a shortcut for typing set search_path =.

This allows you to use psql as follows:

\dn

\n my_schema

\d

\d my_table

etc.


Not yet done: updating documentation (psql internal help, psql man page,
main documentation).

If this is something that is desired (I hope so as this is something I now
use a lot), I will update the documentation and resubmit.


Cheers,

Colin