postgresql/src/backend
Amit Langote 1a2d60cc04 Fix incorrect comment in JsonTablePlanJoinNextRow()
The comment on the return-false path when both UNION siblings are
exhausted said "there are more rows," which is the opposite of what
the code does. The code itself is correct, returning false to signal
no more rows, but the misleading comment could tempt a reader into
"fixing" the return value, which would cause UNION plans to loop
indefinitely.

Back-patch to 17, where JSON_TABLE was introduced.

Author: Chuanwen Hu <463945512@qq.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/tencent_4CC6316F02DECA61ACCF22F933FEA5C12806@qq.com
Backpatch-through: 17
2026-04-16 12:12:01 +09:00
..
access Fix multixact backwards-compatibility with CHECKPOINT race condition 2026-03-23 11:59:07 +02:00
archive Fix memory leaks in error reporting with LOG level 2024-05-14 10:41:32 +02:00
backup Fix incorrect errno in OpenWalSummaryFile() 2026-02-03 11:25:16 +09:00
bootstrap Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
catalog Fix some cases of indirectly casting away const. 2026-02-25 11:19:50 -05:00
commands Avoid unsafe access to negative index in a TupleDesc. 2026-04-06 14:22:17 -04:00
executor Fix integer overflow in nodeWindowAgg.c 2026-04-09 19:32:09 +09:00
foreign Restrict accesses to non-system views and foreign tables during pg_dump. 2024-08-05 06:05:30 -07:00
jit jit: No backport::SectionMemoryManager for LLVM 22. 2026-04-03 15:00:19 +13:00
lib Accommodate very large dshash tables. 2024-12-17 15:24:45 -06:00
libpq Fix build breakage on Solaris-alikes with late-model GCC. 2025-07-23 15:44:29 -04:00
main Avoid possible crash within libsanitizer. 2025-11-05 11:09:30 -05:00
nodes Fix internal error from CollateExpr in SQL/JSON DEFAULT expressions 2025-10-09 01:07:36 -04:00
optimizer Fix computation of varnullingrels when translating appendrel Var 2026-02-20 18:01:56 +09:00
parser Fix possible incorrect column reference in ERROR message 2026-01-09 11:03:24 +13:00
partitioning Revert support for ALTER TABLE ... MERGE/SPLIT PARTITION(S) commands 2024-08-24 19:18:24 +03:00
po Translation updates 2026-02-23 13:56:36 +01:00
port Don't treat EINVAL from semget() as a hard failure. 2025-08-13 11:59:47 -04:00
postmaster Prevent restore of incremental backup from bloating VM fork. 2026-03-09 06:55:10 -04:00
regex Avoid assertion due to disconnected NFA sub-graphs in regex parsing. 2024-11-15 18:23:38 -05:00
replication Fix excessive logging in idle slotsync worker. 2026-04-13 09:21:34 +05:30
rewrite Avoid rewriting data-modifying CTEs more than once. 2025-11-29 12:32:12 +00:00
snowball Avoid null pointer dereference crash after OOM in Snowball stemmers. 2025-02-18 21:23:59 -05:00
statistics Fix set of issues with extended statistics on expressions 2026-03-02 09:38:42 +09:00
storage Fix slotsync worker blocking promotion when stuck in wait 2026-04-08 11:24:00 +09:00
tcop Fix slotsync worker blocking promotion when stuck in wait 2026-04-08 11:24:00 +09:00
tsearch Fix some cases of indirectly casting away const. 2026-02-25 11:19:50 -05:00
utils Fix incorrect comment in JsonTablePlanJoinNextRow() 2026-04-16 12:12:01 +09:00
.gitignore
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile Fix build inconsistency due to the generation of wait-event code 2026-02-02 08:03:02 +09:00
meson.build meson: Fix import library name in Windows 2024-06-20 09:08:36 +02:00
nls.mk Add missing gettext triggers 2024-05-14 12:57:22 +02:00