Clean up a bug in sql/json items commit 66ea94e8e6
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 25 Jan 2024 21:21:57 +0000 (16:21 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 25 Jan 2024 21:25:11 +0000 (16:25 -0500)
commit06a66d87dbc7e06581af6765131ea250063fb4ac
tree060afe89594700cb1748a0881374b31360d58d21
parent7014c9a4bba2d1b67d60687afb5b2091c1d07f73
Clean up a bug in sql/json items commit 66ea94e8e6

Remove a buggy and unnecessary test, along with an unnecessary pstrdup()
and a line of dead code.

Per report, diagnosis and fix from Tom Lane

Discussion: https://postgr.es/m/439811.1706211069@sss.pgh.pa.us
src/backend/utils/adt/jsonpath_exec.c