mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Revert "Use CP_SMALL_TLIST for hash aggregate"
This reverts commit 4cad2534da
due to a
performance regression. It will be replaced by a new approach in an
upcoming commit.
Reported-by: Andres Freund
Discussion: https://postgr.es/m/20200614181418.mx4bvljmfkkhoqzl@alap3.anarazel.de
Backpatch-through: 13
This commit is contained in:
@ -2715,7 +2715,7 @@ select sum(c1) from ft1 group by c2 having avg(c1 * (random() <= 1)::int) > 100
|
||||
Group Key: ft1.c2
|
||||
Filter: (avg((ft1.c1 * ((random() <= '1'::double precision))::integer)) > '100'::numeric)
|
||||
-> Foreign Scan on public.ft1
|
||||
Output: c2, c1
|
||||
Output: c1, c2
|
||||
Remote SQL: SELECT "C 1", c2 FROM "S 1"."T 1"
|
||||
(10 rows)
|
||||
|
||||
@ -2964,7 +2964,7 @@ select sum(c1) filter (where (c1 / c1) * random() <= 1) from ft1 group by c2 ord
|
||||
Output: sum(c1) FILTER (WHERE ((((c1 / c1))::double precision * random()) <= '1'::double precision)), c2
|
||||
Group Key: ft1.c2
|
||||
-> Foreign Scan on public.ft1
|
||||
Output: c2, c1
|
||||
Output: c1, c2
|
||||
Remote SQL: SELECT "C 1", c2 FROM "S 1"."T 1"
|
||||
(9 rows)
|
||||
|
||||
|
Reference in New Issue
Block a user