Re: [PATCH] "\ef " in psql - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] "\ef " in psql
Date
Msg-id 4311.1216333699@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCH] "\ef " in psql  (Abhijit Menon-Sen <ams@oryx.com>)
Responses Re: [PATCH] "\ef " in psql  (Abhijit Menon-Sen <ams@oryx.com>)
List pgsql-hackers
Abhijit Menon-Sen <ams@oryx.com> writes:
> Though I must say it would have been even MORE horrible to copy all this
> code into the backend to make pg_get_functiondef(), notwithstanding the
> extra utility of a generally-callable function.

FWIW, I just found myself forced to invent pg_get_function_arguments()
and pg_get_function_result(), because the TABLE function patch has
pushed the complexity of printing function argument and result types
well beyond the bounds of sanity.  (Pavel had hacked up pg_dump and
ignored psql's \df ...)  It wouldn't take a whole lot to convince me
that a pg_get_functiondef would be useful, although I don't foresee
either of those applications wanting to use it because of their
backward-compatibility constraints.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: ecpg generated files ignorable?
Next
From: Marc Munro
Date:
Subject: Patch to eliminate duplicate b64 code from pgcrypto