=?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