mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Assume deconstruct_array() outputs are untoasted.
In functions that issue a deconstruct_array() call, consistently use plain VARSIZE()/VARDATA() on the array elements. Prior practice was divided between those and VARSIZE_ANY_EXHDR()/VARDATA_ANY().
This commit is contained in:
@ -1240,8 +1240,8 @@ get_jsonb_path_all(FunctionCallInfo fcinfo, bool as_text)
|
||||
{
|
||||
jbvp = findJsonbValueFromContainerLen(container,
|
||||
JB_FOBJECT,
|
||||
VARDATA_ANY(pathtext[i]),
|
||||
VARSIZE_ANY_EXHDR(pathtext[i]));
|
||||
VARDATA(pathtext[i]),
|
||||
VARSIZE(pathtext[i]) - VARHDRSZ);
|
||||
}
|
||||
else if (have_array)
|
||||
{
|
||||
|
Reference in New Issue
Block a user