回复:BUG #18420: Unexpected values appeared in select query statements that should logically imply each other

From: 王子涵4620 <1290874854(at)qq(dot)com>
To: akuluasan <akuluasan(at)163(dot)com>, pgsql-bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Cc: akuluasan <akuluasan(at)163(dot)com>
Subject: 回复:BUG #18420: Unexpected values appeared in select query statements that should logically imply each other
Date: 2024-04-04 07:03:07
Message-ID: tencent_A3E843F5788DB46A1C157A5C4830B7F07F08@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I&nbsp;am&nbsp;using&nbsp;my&nbsp;tool&nbsp;to&nbsp;simplify&nbsp;&nbsp;the&nbsp;SQL&nbsp;query.&nbsp;Can&nbsp;you&nbsp;please&nbsp;confirm&nbsp;if&nbsp;the&nbsp;simplification&nbsp;process&nbsp;helps&nbsp;you&nbsp;diagnose&nbsp;and&nbsp;locate&nbsp;bugs?
----create&nbsp;data----
create&nbsp;table&nbsp;table_3_utf8_undef&nbsp;(
id&nbsp;SERIAL&nbsp;PRIMARY&nbsp;KEY,
"col_varchar(20)_undef_signed"&nbsp;varchar(20)&nbsp;&nbsp;

)&nbsp;;
insert&nbsp;into&nbsp;table_3_utf8_undef&nbsp;values&nbsp;(0,'3
'),(1,'well'),(2,'-0');

----sql1----

(SELECT&nbsp;(CEILING(0.248382))&nbsp;AS&nbsp;"f1"FROM&nbsp;&nbsp;"table_3_utf8_undef"

WHERE&nbsp;(NOT&nbsp;('wxynhwi'&nbsp;IN&nbsp;(SELECT&nbsp;&nbsp;"col_varchar(20)_undef_signed"&nbsp;FROM&nbsp;"table_3_utf8_undef")))
)
UNION&nbsp;(SELECT&nbsp;(CEILING(0.567733)^CEIL(0.891845))&nbsp;AS&nbsp;"f1"&nbsp;FROM&nbsp;"table_3_utf8_undef");

&nbsp;f1&nbsp;
----
&nbsp;&nbsp;1

----sql2----
(SELECT&nbsp;(CEILING(0.248382))&nbsp;AS&nbsp;"f1"&nbsp;FROM&nbsp;"table_3_utf8_undef"
WHERE&nbsp;FALSE&nbsp;)&nbsp;

UNION&nbsp;(SELECT&nbsp;(CEILING(0.567733)^CEIL(0.891845))&nbsp;AS&nbsp;"f1"&nbsp;FROM"table_3_utf8_undef");
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;f1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
--------------------
&nbsp;1.0000000000000000

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Akshat Jaimini 2024-04-04 09:51:48 Re: BUG: deadlock between autovacuum worker and client backend during removal of orphan temp tables with sequences
Previous Message PG Bug reporting form 2024-04-04 06:14:03 BUG #18420: Unexpected values appeared in select query statements that should logically imply each other