Re: BUG #16368: Incorrect function inlining in the presence of a window function - Mailing list pgsql-bugs

From Elvis Pranskevichus
Subject Re: BUG #16368: Incorrect function inlining in the presence of a window function
Date
Msg-id 2352640.BRP1sDCPNr@hammer.magicstack.net
Whole thread Raw
In response to Re: BUG #16368: Incorrect function inlining in the presence of a window function  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
> The particular case mentioned there seems to be about the same as
> here: constant-folding happens even in CASE arms that will never be
> reached at runtime.  

Since the actual issue here is false positive exceptions, why can't we 
treat errors raised during const eval as a signal to cancel the constant 
folding, i.e. ignore them and keep the failing expression unoptimized?

                              Elvis





pgsql-bugs by date:

Previous
From: Elvis Pranskevichus
Date:
Subject: Re: BUG #16368: Incorrect function inlining in the presence of a window function
Next
From: Michael Paquier
Date:
Subject: Re: BUG #16369: Segmentation Faults and Data Corruption withGenerated Columns