postgresql/src/backend/utils
Tom Lane eba2ce1712 Fix another crash in json{b}_populate_recordset and json{b}_to_recordset.
populate_recordset_worker() failed to consider the possibility that the
supplied JSON data contains no rows, so that update_cached_tupdesc never
got called.  This led to a null-pointer dereference since commit 9a5e8ed28;
before that it led to a bogus "set-valued function called in context that
cannot accept a set" error.  Fix by forcing the update to happen.

Per bug #15514.  Back-patch to v11 as 9a5e8ed28 was.  (If we were excited
about the bogus error, we could perhaps go back further, but it'd take more
work to figure out how to fix it in older branches.  Given the lack of
field complaints about that aspect, I'm not excited.)

Discussion: https://postgr.es/m/15514-59d5b4c4065b178b@postgresql.org
2018-11-22 15:14:01 -05:00
..
adt Fix another crash in json{b}_populate_recordset and json{b}_to_recordset. 2018-11-22 15:14:01 -05:00
cache Remove WITH OIDS support, change oid catalog column visibility. 2018-11-20 16:00:17 -08:00
error Disallow setting client_min_messages higher than ERROR. 2018-11-08 17:33:43 -05:00
fmgr Remove WITH OIDS support, change oid catalog column visibility. 2018-11-20 16:00:17 -08:00
hash Allow memory contexts to have both fixed and variable ident strings. 2018-03-27 16:46:51 -04:00
init Remove WITH OIDS support, change oid catalog column visibility. 2018-11-20 16:00:17 -08:00
mb Const-ify a few more large static tables. 2018-10-17 15:32:47 -04:00
misc Remove WITH OIDS support, change oid catalog column visibility. 2018-11-20 16:00:17 -08:00
mmgr Remove WITH OIDS support, change oid catalog column visibility. 2018-11-20 16:00:17 -08:00
resowner Use a ResourceOwner to track buffer pins in all cases. 2018-07-18 12:15:16 -04:00
sort Introduce notion of different types of slots (without implementing them). 2018-11-15 22:00:30 -08:00
time Fix misc typos, mostly in comments. 2018-07-18 16:17:32 +03:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
errcodes.txt Relax transactional restrictions on ALTER TYPE ... ADD VALUE (redux). 2018-10-09 12:51:01 +13:00
Gen_dummy_probes.pl Clean up some perlcritic warnings 2018-05-07 15:35:32 -04:00
Gen_dummy_probes.sed Update copyright for 2018 2018-01-02 23:30:12 -05:00
Gen_fmgrtab.pl Reorder FmgrBuiltin members, saving 25% in size. 2018-10-16 14:51:18 -07:00
generate-errcodes.pl Update copyright for 2018 2018-01-02 23:30:12 -05:00
Makefile Suppress compiler warnings when building with --enable-dtrace. 2018-05-07 13:44:09 -04:00
probes.d Support parallel btree index builds. 2018-02-02 13:32:44 -05:00