[PATCH] psql \n shortcut for set search_path = - Mailing list pgsql-hackers

From Colin 't Hart
Subject [PATCH] psql \n shortcut for set search_path =
Date
Msg-id CAMon-aT6b3s9mx6BuokBGy0rh5_dPawuV9-8rBW2oLO=k-rPSg@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] psql \n shortcut for set search_path =  (Josh Kupershmidt <schmiddy@gmail.com>)
List pgsql-hackers
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
Attachment

pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: Event Triggers reduced, v1
Next
From: Josh Kupershmidt
Date:
Subject: Re: autocomplete - SELECT fx