Why no exprs in format string to RAISE
Why no exprs in format string to RAISE
От:
Markus Bertheau <twanger@bluetwanger.de>
Дата:
Hi, is there a non-implementation reason as to why there are no expressions allowed in the arguments to the format string to RAISE, or is that just not implemented yet? Thanks. -- Markus Bertheau
Re: Why no exprs in format string to RAISE
От:
Richard Huxton <dev@archonet.com>
Дата:
Markus Bertheau wrote: > Hi, > > is there a non-implementation reason as to why there are no expressions > allowed in the arguments to the format string to RAISE, or is that just > not implemented yet? Just not done yet AFAIK. It would require some changes to the parser for plpgsql, but nothing too extreme. Might make a good project for someone learning more about PG's code. -- Richard Huxton Archonet Ltd
Re: Why no exprs in format string to RAISE
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
Richard Huxton wrote:
> Markus Bertheau wrote:
> > Hi,
> >
> > is there a non-implementation reason as to why there are no expressions
> > allowed in the arguments to the format string to RAISE, or is that just
> > not implemented yet?
>
> Just not done yet AFAIK. It would require some changes to the parser for
> plpgsql, but nothing too extreme. Might make a good project for
> someone learning more about PG's code.
TODO has:
o Allow PL/PgSQL's RAISE function to take expressions
-- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073