Re: plpgsql raise - parameters can be expressions - Mailing list pgsql-patches

From Neil Conway
Subject Re: plpgsql raise - parameters can be expressions
Date
Msg-id 42AD7580.1000901@samurai.com
Whole thread Raw
In response to plpgsql raise - parameters can be expressions  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
List pgsql-patches
Pavel Stehule wrote:
> I did trivial patch which eliminate limit raise command.

In thinking about this some more, it would be nice to be able to use
exec_eval_expr() to reduce expression evaluation overhead for simple
RAISE parameters. It is easy enough to refactor the current
exec_eval_expr() code so this is possible, but it will be of only
limited use: PL/PgSQL currently only considers expressions that result
in a single attribute as sufficiently simple that they can be evaluated
via ExecEvalExpr(). I wonder how much work it would take to lift this
restriction...

-Neil

pgsql-patches by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: plpgsql raise - parameters can be expressions
Next
From: Atsushi Ogawa
Date:
Subject: EUC_JP and SJIS conversion improvement