- Notifications
You must be signed in to change notification settings - Fork28
Commit9915fe2
committed
Document behavior of the .** jsonpath accessor in the lax mode
When the .** jsonpath accessor handles the array, it selects both array andeach of its elements. When using lax mode, subsequent accessors automaticallyunwrap arrays. So, the content of each array element may be selected twice.Even though this behavior is counterintuitive, it's correct because everythingworks as designed. This commit documents it.Backpatch to 12 where the jsonpath language was introduced.Reported-by: Thomas KellererBug: #16828Discussion:https://postgr.es/m/16828-2b0229babfad2d8c%40postgresql.orgDiscussion:https://postgr.es/m/CAPpHfdtS-nNidT%3DEqZbAYOPcnNOWh_sd6skVdu2CAQUGdvpT8Q%40mail.gmail.comAuthor: Alexandex Korotkov, revised by Tom LaneReviewed-by: Alvaro Herrera, Thomas Kellerer, Tom LaneBackpatch-through: 121 parent4a9ce08 commit9915fe2
1 file changed
+18
-0
lines changedLines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16257 | 16257 |
| |
16258 | 16258 |
| |
16259 | 16259 |
| |
| 16260 | + | |
| 16261 | + | |
| 16262 | + | |
| 16263 | + | |
| 16264 | + | |
| 16265 | + | |
| 16266 | + | |
| 16267 | + | |
| 16268 | + | |
| 16269 | + | |
| 16270 | + | |
| 16271 | + | |
| 16272 | + | |
| 16273 | + | |
| 16274 | + | |
| 16275 | + | |
| 16276 | + | |
| 16277 | + | |
16260 | 16278 |
| |
16261 | 16279 |
| |
16262 | 16280 |
| |
|
0 commit comments
Comments
(0)