Clean up a bug in sql/json items commit 66ea94e8e6

Andrew Dunstan <andrew@dunslane.net>

Commit: 06a66d87dbc7e06581af6765131ea250063fb4ac
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2024-01-25T21:25:11Z
Releases: 17.0
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

Files

PathChange+/−
src/backend/utils/adt/jsonpath_exec.c modified +1 −3

Discussion