Обсуждение: Why no exprs in format string to RAISE
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 <twanger@bluetwanger.de>
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 agood project for someone learning more about PG's code. -- Richard Huxton Archonet Ltd
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, Pennsylvania19073