Re: BUG #19059: PostgreSQL fails to evaluate the cheaper expression first, leading to 45X performance degradation
Christophe Pettus <xof@thebuild.com>
From: Christophe Pettus <xof@thebuild.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: jinhui.lai@qq.com,
pgsql-bugs@lists.postgresql.org
Date: 2025-09-20T22:54:54Z
Lists: pgsql-bugs
> On Sep 20, 2025, at 14:19, Tom Lane <tgl@sss.pgh.pa.us> wrote: > While we've not gotten a huge amount of push-back about the top-level > re-ordering, there's been some complaints. So I'm not eager to > propagate the idea further down. And tangentially, doesn't the SQL standard make it implementation-defined if OR short-circuits or not?