From: Piotr Włodarczyk <piotrwlodarczyk89@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Recovery mode with partitioned tables and ANY(NULL) in WHERE clause
Date: Fri, 9 Aug 2019 19:44:00 +0200
Message-ID: <CAP-dhMoGEhY9-WWbqCa2XC-RMRPDX-Xypu8kxo-HomeHLA1dPg@mail.gmail.com> (raw)
In-Reply-To: <CAP-dhMp5Cq04JfQNBVy+y1k9SNEhCaFLVdfQqLkcp1GJDLrOeQ@mail.gmail.com>
References: <CAP-dhMr+vRpwizEYjUjsiZ1vwqpohTm+3Pbdt6Pr7FEgPq9R0Q@mail.gmail.com>
<9726.1565369142@sss.pgh.pa.us>
<CAP-dhMp8BPRK_Vt-=sni+Uek8hO+boXgUEHRvbOkgOYvoKdKRw@mail.gmail.com>
<7929.1565371313@sss.pgh.pa.us>
<CAP-dhMp5Cq04JfQNBVy+y1k9SNEhCaFLVdfQqLkcp1GJDLrOeQ@mail.gmail.com>
Hi,
I've checked your commit and let me ensue it's fulfill all cases.
For example what with query like that: select * from coercepart where a =
any(null); ? there is no casting to array of specified type. I'm not master
in C but looking in source I believe that "if (array->const snull)" is
enough. But for better check you can add that query (and similar) to
tests/regress
On Fri, Aug 9, 2019 at 7:23 PM Piotr Włodarczyk <piotrwlodarczyk89@gmail.com>
wrote:
> Cool, thanks!
>
> pt., 9 sie 2019, 19:21 użytkownik Tom Lane <tgl@sss.pgh.pa.us> napisał:
>
>> =?UTF-8?Q?Piotr_W=C5=82odarczyk?= <piotrwlodarczyk89@gmail.com> writes:
>> > Can you tell me in which versions it'll be fixed? For me it's critical
>> > situation because we can have some potentially dangerous places in
>> > application.
>>
>> Unfortunately this just missed this week's releases, so it'll be the
>> next quarterly releases in November.
>>
>> If you're sufficiently worried about it you could apply the patch locally.
>> It's pretty trivial:
>>
>>
>> https://git.postgresql.org/pg/commitdiff/2f729d83226705d1149419a2aef7c1678fe641ec
>>
>> regards, tom lane
>>
>
--
Pozdrawiam
Piotr Włodarczyk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: piotrwlodarczyk89@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: Recovery mode with partitioned tables and ANY(NULL) in WHERE clause
In-Reply-To: <CAP-dhMoGEhY9-WWbqCa2XC-RMRPDX-Xypu8kxo-HomeHLA1dPg@mail.gmail.com>
References: <CAP-dhMr+vRpwizEYjUjsiZ1vwqpohTm+3Pbdt6Pr7FEgPq9R0Q@mail.gmail.com> <9726.1565369142@sss.pgh.pa.us> <CAP-dhMp8BPRK_Vt-=sni+Uek8hO+boXgUEHRvbOkgOYvoKdKRw@mail.gmail.com> <7929.1565371313@sss.pgh.pa.us> <CAP-dhMp5Cq04JfQNBVy+y1k9SNEhCaFLVdfQqLkcp1GJDLrOeQ@mail.gmail.com> <CAP-dhMoGEhY9-WWbqCa2XC-RMRPDX-Xypu8kxo-HomeHLA1dPg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox