From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Gregory Stark <stark(at)enterprisedb(dot)com> |
Cc: | "Brendan Jurd" <direvus(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, "Bernd Helmle" <mailings(at)oopsware(dot)de>, "Peter Eisentraut" <peter_e(at)gmx(dot)net> |
Subject: | Re: Separate psql commands from arguments |
Date: | 2008-04-04 23:16:19 |
Message-ID: | 9876.1207350979@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> "Brendan Jurd" <direvus(at)gmail(dot)com> writes:
>> +1 for dropping this quirk. And, if there are no objections (or other
>> takers), I volunteer to write a patch.
> Regardless of whether we go ahead with this (and I'm not fond of it primarily
> because I want \c& to "work"),
Perhaps the useful part of the old behavior could be kept by allowing
the command name to be terminated by punctuation as well as whitespace.
("Punctuation" being all nonletters except "+", since we already accept
"+" in command names --- or alternatively we could consider the "+" as
the first argument?) Would that cover all the cases you are used to
using?
> I think we would still be better off keeping
> the aliases in a separate namespace from psql commands and having an explicit
> command for calling them.
+1. As I already said, the psql command namespace is so dense that it's
going to be real hard to actually use aliases unless we separate them
somehow.
However, the invoking command has to be pretty dang short or typing it
will negate the point of having aliases. Perhaps something like this:
if your alias is "foo" you invoke it as "\-foo ...".
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2008-04-04 23:56:02 | Re: libpq type system 0.9a |
Previous Message | Alvaro Herrera | 2008-04-04 23:02:37 | Re: Separate psql commands from arguments |