BUG #19957: jsonpath `last` returns the wrong index after a filter containing `exists($x[0])`

Log in to edit
ID 7761
Title BUG #19957: jsonpath `last` returns the wrong index after a filter containing `exists($x[0])`
CI (CFBot) Summary
Stats (from CFBot) Patch version: v1, Patch count: 1, First patch: +32−1, All patches: +32−1
Tags Bugfix
Created 2026-11-30 12:51:04
Last modified 2026-11-30 12:51:05 (11 minutes ago)
Latest email 2026-11-30 12:39:53 (22 minutes ago)
Status
PG20-4 (2027-01-01 – 2027-01-31): Needs review
Target version
Authors Ishjaap Singh (vennictus)
Reviewers Log in to become reviewer
Committer
Links
Emails
BUG #19957: jsonpath `last` returns the wrong index after a filter containing `exists($x[0])`
First at 2026-11-29 14:54:32 by PG Bug reporting form <noreply at postgresql.org>
Latest at 2026-11-30 12:39:53 by Ishjaap Singh <ishjaap.singh07 at gmail.com>
Latest attachment (v1-0001-Fix-jsonpath-LAST-after-an-array-subscript-inside.patch) at 2026-11-30 12:39:53 from Ishjaap Singh <ishjaap.singh07 at gmail.com>
    Attachment (v1-0001-Fix-jsonpath-LAST-after-an-array-subscript-inside.patch) at 2026-11-30 12:39:53 from Ishjaap Singh <ishjaap.singh07 at gmail.com> (Patch: Pending check)
History
When Who What
2026-11-30 12:51:05 Ishjaap Singh (vennictus) Attached mail thread 19957-c7ec007cd15aa526@postgresql.org
2026-11-30 12:51:04 Ishjaap Singh (vennictus) Created patch record
Log in to edit