mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-05 15:29:20 +02:00
Correct type of front_pathkey to PathKey
In sort_inner_and_outer we iterate a list of PathKey elements, but the variable is declared as (List *). This mistake is benign, because we only pass the pointer to lcons() and never dereference it. This exists since ~2004, but it's confusing. So fix and backpatch to all supported branches. Backpatch-through: 10 Discussion: https://postgr.es/m/bf3a6ea1-a7d8-7211-0669-189d5c169374%40enterprisedb.com
This commit is contained in:
parent
e2d53c8767
commit
93854d5b1b
@ -996,7 +996,7 @@ sort_inner_and_outer(PlannerInfo *root,
|
|||||||
|
|
||||||
foreach(l, all_pathkeys)
|
foreach(l, all_pathkeys)
|
||||||
{
|
{
|
||||||
List *front_pathkey = (List *) lfirst(l);
|
PathKey *front_pathkey = (PathKey *) lfirst(l);
|
||||||
List *cur_mergeclauses;
|
List *cur_mergeclauses;
|
||||||
List *outerkeys;
|
List *outerkeys;
|
||||||
List *innerkeys;
|
List *innerkeys;
|
||||||
|
Loading…
Reference in New Issue
Block a user