Re: [PATCH] "\ef <function>" in psql

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: [PATCH] "\ef <function>" in psql
Дата
Msg-id
11443.1220678918@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
[PATCH] "\ef <function>" in psql Abhijit Menon-Sen <ams@oryx.com>
Re: [PATCH] "\ef <function>" in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] "\ef <function>" in psql Abhijit Menon-Sen <ams@oryx.com>
Re: [PATCH] "\ef <function>" in psql Abhijit Menon-Sen <ams@oryx.com>
Re: [PATCH] "\ef <function>" in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] "\ef <function>" in psql Abhijit Menon-Sen <ams@oryx.com>
Re: [PATCH] "\ef <function>" in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] "\ef <function>" in psql Abhijit Menon-Sen <ams@oryx.com>
Re: [PATCH] "\ef <function>" in psql Abhijit Menon-Sen <ams@oryx.com>
Re: [PATCH] "\ef <function>" in psql Abhijit Menon-Sen <ams@oryx.com>
Re: [PATCH] "\ef <function>" in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] "\ef <function>" in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] "\ef <function>" in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] "\ef <function>" in psql Abhijit Menon-Sen <ams@oryx.com>
Re: [PATCH] "\ef <function>" in psql Alvaro Herrera <alvherre@commandprompt.com>
Re: [PATCH] "\ef <function>" in psql Bruce Momjian <bruce@momjian.us>
Re: [PATCH] "\ef <function>" in psql "Brendan Jurd" <direvus@gmail.com>
Re: [PATCH] "\ef <function>" in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] "\ef <function>" in psql Bruce Momjian <bruce@momjian.us>
Re: [PATCH] "\ef <function>" in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] "\ef <function>" in psql "David E. Wheeler" <david@kineticode.com>
PL/LOLCODE [was Re: [PATCH] "\ef <function>" in psql] David Fetter <david@fetter.org>
Re: [PATCH] "\ef <function>" in psql "Marko Kreen" <markokr@gmail.com>
Re: [PATCH] "\ef <function>" in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] "\ef <function>" in psql "Asko Oja" <ascoja@gmail.com>
Re: [PATCH] "\ef <function>" in psql "Asko Oja" <ascoja@gmail.com>
Re: [PATCH] "\ef <function>" in psql "Robert Haas" <robertmhaas@gmail.com>
Re: [PATCH] "\ef <function>" in psql David Fetter <david@fetter.org>
I wrote:
> * the psql command seemed to have some ideas about supplying a blank
> CREATE OR REPLACE FUNCTION command for a nonexistent function, but this
> didn't actually work.  In any case it seemed poorly thought out, because
> you'd really need to pay some attention to *why* the regproc/regprocedure
> lookup failed.  I just ripped it out for the moment.  I'm not averse to
> the concept, if you can get it implemented properly.

While I was out at dinner, the obvious solution presented itself: define
\ef with no argument as being the command that presents an empty CREATE
FUNCTION command template to fill in.  This isn't any more or less
typing than where I think you were going, and it eliminates all the
ambiguity about whether you meant to type a nonexistent function name
or just mistyped.
		regards, tom lane

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Asko Oja
Дата:
FAQ