Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset more aggressively hints for queries executed via extended query…
… protocol A query executed with the extended query protocol may entirely ignore hints defined in it, as the only moment where a hint is reset is when a query is restarted. This commit introduces a hook for ExecutorEnd(), which is a code path taken at the end of each individual execution happening through a Portal when using the extended query protocol. After this patch, it should be possible to make the reset of current_hint_retrieved less optimistic, but the current logic does not hurt as well as the end of executor would match with the next query to come in for most users. Per report and patch #12741 in yugabyte-db, also reported as #145 in pg_hint_plan. Reported-by: Furutani-san (kfuru) Author: tanujnay112 Backpatch-through: 11
- Loading branch information