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

From Ranier Vilela
Subject Planner, check if can use consider HASH for groupings (src/backend/optimizer/plan/planner.c)
Date
Msg-id CAEudQApmiG_zBcA98FFXueW0-752SZ5g3CU6PjL7+MZ+0C6Wkw@mail.gmail.com
Whole thread Raw
Responses Re: Planner, check if can use consider HASH for groupings (src/backend/optimizer/plan/planner.c)  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
List 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

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: "Unified logging system" breaks access to pg_dump debug outputs
Next
From: Fujii Masao
Date:
Subject: Re: history file on replica and double switchover