Re: Conditional compilation

2023-11-12 Thread Thiemo Kellner
Thanks for pointing out. The only use case of conditional compilation, I can think of, is, that one can have arbitrary logging code in some environments without performance penalty in others, e.g. log as hell in dev, no logging at all in prod without the "function" having to execute

Re: Conditional compilation

2023-11-12 Thread Tom Lane
Ron writes: > On 11/12/23 09:32, Thiemo Kellner wrote: >> Does PostgreSQL have something like Oracle's conditional compilation? This >> is sort of an if then statement that gets evaluated on >> compilation/installation time of PL/SQL code. If the condition is met, t

Re: Conditional compilation

2023-11-12 Thread Ron
On 11/12/23 09:32, Thiemo Kellner wrote: Hi Does PostgreSQL have something like Oracle's conditional compilation? This is sort of an if then statement that gets evaluated on compilation/installation time of PL/SQL code. If the condition is met, the code until the $END gets compiled.

Conditional compilation

2023-11-12 Thread Thiemo Kellner
Hi Does PostgreSQL have something like Oracle's conditional compilation? This is sort of an if then statement that gets evaluated on compilation/installation time of PL/SQL code. If the condition is met, the code until the $END gets compiled. It is even possible to switch on/off par