postgresql/src/backend
Michael Paquier 954e57708e Fix jsonpath .split_part() to honor silent mode
The jsonpath .split_part() method passed its field-position argument
through numeric_int4(), that can fail hard if called directly.

This commit switches the code to use numeric_int4_safe() with an error
context for soft reporting, so as the overflow and zero field-position
cases can be handled in silent mode.

Oversight in bd4f879a9c.

Author:  Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://postgr.es/m/FCF996D0-580B-431C-8DE1-A540C58E444C@gmail.com
2026-05-14 16:02:07 +09:00
..
access Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
archive Don't include wait_event.h in pgstat.h 2026-03-06 16:24:58 +01:00
backup Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
bootstrap Rework signal handler infrastructure to pass sender info as argument. 2026-04-15 07:30:34 -04:00
catalog Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
commands Fix style in a few REPACK ereports 2026-05-13 18:28:31 +02:00
executor Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
foreign Remove bits* typedefs. 2026-03-30 16:12:08 -05:00
jit jit: No backport::SectionMemoryManager for LLVM 22. 2026-04-03 14:55:11 +13:00
lib Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
libpq Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
main Update copyright for 2026 2026-01-01 13:24:10 -05:00
nodes Handle nodes that may appear in GraphPattern expression trees 2026-05-04 17:34:32 +02:00
optimizer Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
parser Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
partitioning Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
po Update copyright for 2026 2026-01-01 13:24:10 -05:00
port Use "grep -E" not "egrep". 2026-05-13 12:07:19 -04:00
postmaster Fix race condition in XLogLogicalInfo and ProcSignal initialization. 2026-05-07 10:09:42 -07:00
regex Harden our regex engine against integer overflow in size calculations. 2026-05-11 05:13:46 -07:00
replication Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
rewrite Fix FOR PORTION OF with non-updatable view columns 2026-05-13 13:44:28 +02:00
snowball Fix meson build of snowball code. 2026-01-05 16:51:36 -05:00
statistics Fix MCV input array checks in statistics restore functions 2026-05-11 05:13:46 -07:00
storage Pre-beta mechanical code beautification, step 2: run pgperltidy. 2026-05-13 10:37:42 -04:00
tcop Fix unbounded recursive handling of SSL/GSS in ProcessStartupPacket() 2026-05-11 05:13:46 -07:00
tsearch Fix overflows with ts_headline() 2026-05-11 05:13:46 -07:00
utils Fix jsonpath .split_part() to honor silent mode 2026-05-14 16:02:07 +09:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile ssl: Serverside SNI support for libpq 2026-03-18 12:37:11 +01:00
meson.build Add CONCURRENTLY option to REPACK 2026-04-06 21:55:08 +02:00
nls.mk Create a separate file listing backend types 2025-09-26 15:21:49 +02:00