postgresql/src/backend/utils
Amit Langote f6a2529920 Fix JsonExpr deparsing to emit QUOTES and WRAPPER correctly
Currently, get_json_expr_options() does not emit the default values
for QUOTES (KEEP QUOTES) and WRAPPER (WITHOUT WRAPPER).  That causes
the deparsed JSON_TABLE() columns, such as those contained in a a
view's query, to behave differently when executed than the original
definition.  That's because the rules encoded in
transformJsonTableColumns() will choose either JSON_VALUE() or
JSON_QUERY() as implementation to execute a given column's path
expression depending on the QUOTES and WRAPPER specificationd and
they have slightly different semantics.

Reported-by: Jian He <jian.universality@gmail.com>
Discussion: https://postgr.es/m/CACJufxEqhqsfrg_p7EMyo5zak3d767iFDL8vz_4%3DZBHpOtrghw%40mail.gmail.com
2024-04-08 16:14:12 +09:00
..
activity Use conditional variable to wait for next MultiXact offset 2024-04-07 20:33:45 +02:00
adt Fix JsonExpr deparsing to emit QUOTES and WRAPPER correctly 2024-04-08 16:14:12 +09:00
cache Add error codes to some PANIC/FATAL errors reports 2024-04-03 09:19:25 +02:00
error Coordinate emit_log_hook and all log destinations to share the same timeval 2024-04-04 14:15:22 +09:00
fmgr Refactor code checking for file existence 2024-01-12 12:04:51 +09:00
hash Mark hash_corrupted() as pg_attribute_noreturn. 2024-03-17 17:54:45 -04:00
init Increase default vacuum_buffer_usage_limit to 2MB. 2024-04-06 23:12:03 +13:00
mb Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
misc Fix the wording of or_to_any_transform_limit description 2024-04-08 08:59:27 +03:00
mmgr Fix incorrect KeeperBlock macro in bump.c 2024-04-08 11:06:31 +12:00
resowner Use new overflow-safe integer comparison functions. 2024-02-16 14:05:36 -06:00
sort Use bump memory context for tuplesorts 2024-04-08 00:32:26 +12:00
time Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
Gen_dummy_probes.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
Gen_fmgrtab.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
Makefile Update copyright for 2024 2024-01-03 20:49:05 -05:00
errcodes.txt Introduce transaction_timeout 2024-02-15 23:56:12 +02:00
generate-errcodes.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
postprocess_dtrace.sed Update copyright for 2024 2024-01-03 20:49:05 -05:00
probes.d Update copyright for 2024 2024-01-03 20:49:05 -05:00