Disallow invalid path elements in jsonb_set

Andrew Dunstan <andrew@dunslane.net>

Commit: 544ccf644288132f805260c4eb9fd12029c5cf8c
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2015-10-04T17:48:24Z
Releases: 9.5.0
Disallow invalid path elements in jsonb_set

Null path elements and, where the object is an array, invalid integer
elements now cause an error.

Incorrect behaviour noted by Thom Brown, patch from Dmitry Dolgov.

Backpatch to 9.5 where jsonb_set was introduced

Files