pgsql: Fix two small bugs in json's populate_record_worker - Mailing list pgsql-committers

From Andrew Dunstan
Subject pgsql: Fix two small bugs in json's populate_record_worker
Date
Msg-id E1YpJTL-0005qg-JX@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix two small bugs in json's populate_record_worker

The first bug is not releasing a tupdesc when doing an early return out
of the function. The second bug is a logic error in choosing when to do
an early return if given an empty jsonb object.

Bug reports from Pavel Stehule and Tom Lane respectively.

Backpatch to 9.4 where these were introduced.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/997066f4456c0fc582e62a50e296c77360212049

Modified Files
--------------
src/backend/utils/adt/jsonfuncs.c |    6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: Fix two small bugs in json's populate_record_worker
Next
From: Robert Haas
Date:
Subject: pgsql: Backport "Expose fsync_fname as a public API".