BUG #18218: NOT LIKE ANY returns same result as LIKE ANY when array items are wrapped into E'' - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #18218: NOT LIKE ANY returns same result as LIKE ANY when array items are wrapped into E''
Date
Msg-id 18218-8cbdd922e41ea291@postgresql.org
Whole thread Raw
Responses RE: BUG #18218: NOT LIKE ANY returns same result as LIKE ANY when array items are wrapped into E''  (Orlov Aleksej <al.orlov@cft.ru>)
Re: BUG #18218: NOT LIKE ANY returns same result as LIKE ANY when array items are wrapped into E''  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      18218
Logged by:          Baurzhan Sakhariyev
Email address:      baurzhansahariev@gmail.com
PostgreSQL version: 15.0
Operating system:   MacOS
Description:

https://www.db-fiddle.com/f/cpNjWRLmQT6UFb2wEo2LoG/0

select 'TextToMatch' like any (array[E'Te\%tch', E'nomatch']); -- true,
correct
select 'TextToMatch' NOT like any (array[E'Te\%tch', E'nomatch']); -- true
but must be false because it's a negated version of the expression above

Please note, that versions without E'' work as expected. 
select 'TextToMatch' like any (array['Te\%tch', 'nomatch']); -- false
select 'TextToMatch' NOT like any (array['Te\%tch', 'nomatch']); -- true


pgsql-bugs by date:

Previous
From: Andrei Lepikhov
Date:
Subject: Re: BUG #18187: Unexpected error: "variable not found in subplan target lists" triggered by JOIN
Next
From: Orlov Aleksej
Date:
Subject: RE: BUG #18218: NOT LIKE ANY returns same result as LIKE ANY when array items are wrapped into E''