postgresql/src/backend/utils/adt
David Rowley 67f3a697ba Fix overly strict Assert in jsonpath code
This was failing for queries which try to get the .type() of a
jpiLikeRegex.  For example:

select jsonb_path_query('["string", "string"]',
                        '($[0] like_regex ".{7}").type()');

Reported-by: Alexander Kozhemyakin
Bug: #18035
Discussion: https://postgr.es/m/18035-64af5cdcb5adf2a9@postgresql.org
Backpatch-through: 12, where SQL/JSON path was added.
2023-08-02 01:40:56 +12:00
..
.gitignore Revert "Add gitignore entries for jsonpath_gram.h" 2019-03-23 00:19:34 +01:00
acl.c Change some errdetail() to errdetail_internal() 2022-09-28 17:14:53 +02:00
amutils.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
array_expanded.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
array_selfuncs.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
array_typanalyze.c Suppress variable-set-but-not-used warnings from clang 15. 2022-09-20 12:04:37 -04:00
array_userfuncs.c In array_position()/array_positions(), beware of empty input array. 2023-05-04 11:48:23 -04:00
arrayfuncs.c Fix oversights in array manipulation. 2023-03-26 13:41:06 -04:00
arraysubs.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
arrayutils.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
ascii.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
bool.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
cash.c Remove unused includes 2021-12-01 16:10:56 +01:00
char.c Change type "char"'s I/O format for non-ASCII characters. 2022-08-02 10:29:35 -04:00
cryptohashfuncs.c Improve error handling of cryptohash computations 2022-01-11 09:55:16 +09:00
date.c Specialize tuplesort routines for different kinds of abbreviated keys 2022-04-02 15:22:25 +07:00
datetime.c Fix parsing of ISO-8601 interval fields with exponential notation. 2023-02-20 16:55:59 -05:00
datum.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
dbsize.c Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
domains.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
encode.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
enum.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
expandeddatum.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
expandedrecord.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
float.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
format_type.c Revert SQL/JSON features 2022-09-01 17:10:42 -04:00
formatting.c Fix corner case bug in numeric to_char() some more. 2023-03-14 19:17:31 -04:00
genfile.c Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:40 +09:00
geo_ops.c Fix NaN comparison in circle_same test 2022-09-12 12:59:06 +02:00
geo_selfuncs.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
geo_spgist.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
hbafuncs.c Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:40 +09:00
inet_cidr_ntop.c Avoid conflicts with library versions of inet_net_ntop() and friends. 2019-08-18 19:27:23 -04:00
inet_net_pton.c Avoid conflicts with library versions of inet_net_ntop() and friends. 2019-08-18 19:27:23 -04:00
int.c Remove arbitrary FUNC_MAX_ARGS limit in int2vectorin and oidvectorin. 2023-01-15 17:32:09 -05:00
int8.c Teach planner and executor about monotonic window funcs 2022-04-08 10:34:36 +12:00
json.c Revert SQL/JSON features 2022-09-01 17:10:42 -04:00
jsonb.c Revert SQL/JSON features 2022-09-01 17:10:42 -04:00
jsonb_gin.c Fix jsonb subscripting to cope with toasted subscript values. 2022-12-12 16:17:49 -05:00
jsonb_op.c Fix jsonb subscripting to cope with toasted subscript values. 2022-12-12 16:17:49 -05:00
jsonb_util.c Revert SQL/JSON features 2022-09-01 17:10:42 -04:00
jsonbsubs.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
jsonfuncs.c Fix JSON error reporting for many cases of erroneous string values. 2023-03-13 15:19:00 -04:00
jsonpath.c Fix overly strict Assert in jsonpath code 2023-08-02 01:40:56 +12:00
jsonpath_exec.c Accept fractional seconds in jsonpath's datetime() method. 2023-06-12 10:54:28 -04:00
jsonpath_gram.y Suppress variable-set-but-not-used warnings from clang 15. 2022-09-20 12:04:37 -04:00
jsonpath_scan.l Indent C code in flex and bison files 2022-05-13 07:17:29 +02:00
levenshtein.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
like.c Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
like_match.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
like_support.c Defend against stack overrun in a few more places. 2022-08-24 13:02:19 -04:00
lockfuncs.c Revert the addition of GetMaxBackends() and related stuff. 2022-04-12 14:45:23 -04:00
mac.c Specialize tuplesort routines for different kinds of abbreviated keys 2022-04-02 15:22:25 +07:00
mac8.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
Makefile Refactor code related to pg_hba_file_rules() into new file 2022-03-24 12:42:30 +09:00
mcxtfuncs.c Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:40 +09:00
misc.c Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:40 +09:00
multirangetypes.c Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
multirangetypes_selfuncs.c Remove duplicate lines of code 2023-04-24 11:16:17 +02:00
name.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
network.c Work around spurious compiler warning in inet operators 2023-03-16 14:48:45 -07:00
network_gist.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
network_selfuncs.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
network_spgist.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
numeric.c Make int64_div_fast_to_numeric() more robust. 2023-02-03 11:11:59 +00:00
numutils.c Remove pg_atoi() 2022-02-15 07:44:26 +01:00
oid.c Remove arbitrary FUNC_MAX_ARGS limit in int2vectorin and oidvectorin. 2023-01-15 17:32:09 -05:00
oracle_compat.c Avoid fetching one past the end of translate()'s "to" parameter. 2023-03-01 11:30:17 -05:00
orderedsetaggs.c Adjust tuplesort API to have bitwise option flags 2022-04-04 22:24:59 +12:00
partitionfuncs.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
pg_locale.c Fix t_isspace(), etc., when datlocprovider=i and datctype=C. 2023-03-17 12:07:47 -07:00
pg_lsn.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
pg_upgrade_support.c pg_upgrade: Preserve relfilenodes and tablespace OIDs. 2022-01-17 13:40:27 -05:00
pgstatfuncs.c Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:40 +09:00
pseudotypes.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
quote.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
rangetypes.c Change some internal error messages to elogs 2022-03-30 17:53:54 +02:00
rangetypes_gist.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
rangetypes_selfuncs.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
rangetypes_spgist.c Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
rangetypes_typanalyze.c Invent qsort_interruptible(). 2022-07-12 16:30:36 -04:00
regexp.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
regproc.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
ri_triggers.c Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
rowtypes.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
ruleutils.c pageinspect: Fix gist_page_items() with included columns 2023-05-19 12:38:15 +09:00
selfuncs.c YA attempt at taming worst-case behavior of get_actual_variable_range. 2022-11-22 14:40:44 -05:00
tid.c Tighten overflow checks in tidin(). 2022-03-03 20:04:35 -05:00
timestamp.c Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
trigfuncs.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
tsginidx.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
tsgistidx.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
tsquery.c Fix various typos and spelling mistakes in code comments 2022-04-11 20:49:41 +12:00
tsquery_cleanup.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
tsquery_gist.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
tsquery_op.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
tsquery_rewrite.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
tsquery_util.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
tsrank.c Fix collection of typos in the code and the documentation 2022-03-15 11:29:35 +09:00
tsvector.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
tsvector_op.c Add comments and a missing CHECK_FOR_INTERRUPTS in ts_headline. 2022-11-21 17:07:07 -05:00
tsvector_parser.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
uuid.c Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
varbit.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
varchar.c Fix memory leak for hashing with nondeterministic collations. 2022-12-01 11:55:59 -08:00
varlena.c Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:40 +09:00
version.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
windowfuncs.c Teach planner and executor about monotonic window funcs 2022-04-08 10:34:36 +12:00
xid.c Add min() and max() aggregates for xid8. 2022-02-10 12:33:41 +09:00
xid8funcs.c Fix visibility check when XID is committed in CLOG but not in procarray. 2022-06-27 08:21:08 +03:00
xml.c Remove error message hints mentioning configure options 2022-04-08 07:41:55 +02:00