Planner, check if can use consider HASH for groupings (src/backend/optimizer/plan/planner.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Planner, check if can use consider HASH for groupings (src/backend/optimizer/plan/planner.c)
Date: 2020-09-17 17:12:12
Message-ID: CAEudQApmiG_zBcA98FFXueW0-752SZ5g3CU6PjL7+MZ+0C6Wkw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

In case gd->any_hashable is FALSE, grouping_is_hashable is never called.
In this case, the planner could use HASH for groupings, but will never know.

Apparently gd pointer, will never be NULL there, verified with Assert(gd !=
NULL).

regards,
Ranier Vilela

Attachment Content-Type Size
v1-0001-check_grouping_is_hashable.patch application/octet-stream 550 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2020-09-17 17:18:45 Re: history file on replica and double switchover
Previous Message Tom Lane 2020-09-17 16:53:38 Re: "Unified logging system" breaks access to pg_dump debug outputs