Re: Division by zero - Mailing list pgsql-general

From Tom Lane
Subject Re: Division by zero
Date
Msg-id 676.1249231286@sss.pgh.pa.us
Whole thread Raw
In response to Re: Division by zero  (Sam Mason <sam@samason.me.uk>)
List pgsql-general
Sam Mason <sam@samason.me.uk> writes:
> I'm not sure what you're responding to here, but I'm pretty sure the OP
> wants IMMUTABLE and does not want STRICT/RETURNS NULL ON NULL INPUT.

Yeah --- STRICT will prevent inlining.  The function's expression
actually is strict, but the planner isn't smart enough about NULLIF
to realize that, so it doesn't inline.

            regards, tom lane

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Division by zero
Next
From: Tom Lane
Date:
Subject: Re: building a binary-portable database