postgresql/src/include/common
Tom Lane ffd3944ab9 Improve reporting for syntax errors in multi-line JSON data.
Point to the specific line where the error was detected; the
previous code tended to include several preceding lines as well.
Avoid re-scanning the entire input to recompute which line that
was.  Simplify the logic a bit.  Add test cases.

Simon Riggs and Hamid Akhtar, reviewed by Daniel Gustafsson and myself

Discussion: https://postgr.es/m/CANbhV-EPBnXm3MF_TTWBwwqgn1a1Ghmep9VHfqmNBQ8BT0f+_g@mail.gmail.com
2021-03-01 16:44:17 -05:00
..
archive.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
base64.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
checksum_helper.h Fix and simplify some code related to cryptohashes 2021-01-08 10:37:03 +09:00
config_info.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
connect.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
controldata_utils.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
cryptohash.h Add result size as argument of pg_cryptohash_final() for overflow checks 2021-02-15 10:18:34 +09:00
fe_memutils.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
file_perm.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
file_utils.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
hashfn.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
hex.h Rework refactoring of hex and encoding routines 2021-01-14 11:13:24 +09:00
int.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
int128.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
ip.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
jsonapi.h Improve reporting for syntax errors in multi-line JSON data. 2021-03-01 16:44:17 -05:00
keywords.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
kwlookup.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
link-canary.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
logging.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
md5.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
openssl.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_lzcompress.h Optimize partial TOAST decompression 2019-10-01 14:28:28 +02:00
relpath.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
restricted_token.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
saslprep.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
scram-common.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
sha1.h Introduce SHA1 implementations in the cryptohash infrastructure 2021-01-23 11:33:04 +09:00
sha2.h Remove PG_SHA*_DIGEST_STRING_LENGTH from sha2.h 2021-01-15 11:46:34 +09:00
shortest_dec.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
string.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
unicode_combining_table.h Update Unicode data to Unicode 13.0.0 and CLDR 37 2020-04-24 09:52:59 +02:00
unicode_norm.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
unicode_norm_hashfunc.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
unicode_norm_table.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
unicode_normprops_table.h Review format of code generated by PerfectHash.pm 2020-10-21 09:22:27 +09:00
username.h Update copyright for 2021 2021-01-02 13:06:25 -05:00