mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Use the new List API function names throughout the backend, and disable the
list compatibility API by default. While doing this, I decided to keep the llast() macro around and introduce llast_int() and llast_oid() variants.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/optimizer/util/pathnode.c,v 1.105 2004/05/26 04:41:27 neilc Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/optimizer/util/pathnode.c,v 1.106 2004/05/30 23:40:31 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -452,9 +452,9 @@ create_index_path(Query *root,
|
||||
* We are making a pathnode for a single-scan indexscan; therefore,
|
||||
* indexinfo etc should be single-element lists.
|
||||
*/
|
||||
pathnode->indexinfo = makeList1(index);
|
||||
pathnode->indexclauses = makeList1(restriction_clauses);
|
||||
pathnode->indexquals = makeList1(indexquals);
|
||||
pathnode->indexinfo = list_make1(index);
|
||||
pathnode->indexclauses = list_make1(restriction_clauses);
|
||||
pathnode->indexquals = list_make1(indexquals);
|
||||
|
||||
/* It's not an innerjoin path. */
|
||||
pathnode->isjoininner = false;
|
||||
@ -686,12 +686,12 @@ create_unique_path(Query *root, RelOptInfo *rel, Path *subpath)
|
||||
if (sub_targetlist)
|
||||
{
|
||||
pathnode->rows = estimate_num_groups(root, sub_targetlist, rel->rows);
|
||||
numCols = length(sub_targetlist);
|
||||
numCols = list_length(sub_targetlist);
|
||||
}
|
||||
else
|
||||
{
|
||||
pathnode->rows = rel->rows;
|
||||
numCols = length(FastListValue(&rel->reltargetlist));
|
||||
numCols = list_length(FastListValue(&rel->reltargetlist));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user