postgresql/src/include/lib
David Rowley 0b6a02f035 Fix reset of incorrect hash iterator in GROUPING SETS queries
This fixes an unlikely issue when fetching GROUPING SET results from
their internally stored hash tables.  It was possible in rare cases that
the hash iterator would be set up incorrectly which could result in a
crash.

This was introduced in 4d143509c, so backpatch to v18.

Many thanks to Yuri Zamyatin for reporting and helping to debug this
issue.

Bug: #19078
Reported-by: Yuri Zamyatin <yuri@yrz.am>
Author: David Rowley <dgrowleyml@gmail.com>
Reviewed-by: Jeff Davis <pgsql@j-davis.com>
Discussion: https://postgr.es/m/19078-dfd62f840a2c0766@postgresql.org
Backpatch-through: 18
2025-10-18 16:07:41 +13:00
..
binaryheap.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
bipartite_match.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
bloomfilter.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
dshash.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
hyperloglog.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
ilist.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
integerset.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
knapsack.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pairingheap.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
qunique.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
radixtree.h Use PRI?64 instead of "ll?" in format strings (continued). 2025-03-29 10:43:57 +01:00
rbtree.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
simplehash.h Fix reset of incorrect hash iterator in GROUPING SETS queries 2025-10-18 16:07:41 +13:00
sort_template.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
stringinfo.h Add new StringInfo APIs to allow callers to specify the buffer size. 2025-01-11 08:23:46 +09:00