Re: BUG #15311: Incorrect comparison of the empty array with the value of the custom type from the table field

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: vvvasilev93(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15311: Incorrect comparison of the empty array with the value of the custom type from the table field
Date: 2018-08-07 14:34:33
Message-ID: 5592.1533652473@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

=?utf-8?q?PG_Bug_reporting_form?= <noreply(at)postgresql(dot)org> writes:
> [ bogus empty array can be created by jsonb_populate_record ]

I can reproduce this in 10.5, but not in v11 or HEAD. I believe
it was fixed as a consequence of the patch for bug #14826:

https://postgr.es/m/flat/20170923125723(dot)1448(dot)39412(at)wrigleys(dot)postgresql(dot)org
https://postgr.es/m/20570.1506198383@sss.pgh.pa.us

The reasons for not back-patching still seem good to me.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2018-08-07 15:05:54 Re: BUG #15269: Can't reassign bg color to server group once it was done previously
Previous Message Victor Yegorov 2018-08-07 13:40:49 Re: BUG #15313: Waiting `startup` process on a streaming replica