Re: [PATCH] psql \n shortcut for set search_path =

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: "Colin 't Hart" <colin(at)sharpheart(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] psql \n shortcut for set search_path =
Date: 2012-07-10 14:59:57
Message-ID: CAK3UJRFE5FyrjAREOFVD=R6Dx6Dfm8N-w=dNJJiUyhyUxHAX8g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jul 10, 2012 at 2:09 AM, Colin 't Hart <colin(at)sharpheart(dot)org> wrote:
> Attached please find a trivial patch for psql which adds a \n meta command
> as a shortcut for typing set search_path =.

I think the use-case is a bit narrow: saving a few characters typing
on a command not everyone uses very often (I don't), at the expense of
adding yet another command to remember. Plus it opens the floodgates
to people wanting yet more separate commands for other possibly
commonly-used SET commands. There are a lot of GUCs, after all, even
counting only those changeable at runtime.

Josh

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2012-07-10 15:05:34 Re: expression evaluation with expected datatypes
Previous Message Tom Lane 2012-07-10 14:56:50 Re: expression evaluation with expected datatypes