1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Replace non-idiomatic nconc(x, lcons(y, NIL)) with lappend(x, y).

This commit is contained in:
Tom Lane
1999-02-15 02:04:58 +00:00
parent dec354ca97
commit 944d3c395e
7 changed files with 39 additions and 64 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.47 1999/02/15 01:06:58 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.48 1999/02/15 02:04:55 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -385,8 +385,7 @@ create_indexscan_node(IndexPath *best_path,
lcons(index_clause, NIL));
if (lossy)
qpqual = nconc(qpqual,
lcons((List *) copyObject(index_clause), NIL));
qpqual = lappend(qpqual, (List *) copyObject(index_clause));
}
else
{
@ -1200,8 +1199,7 @@ generate_fjoin(List *tlist)
inner,
results,
alwaysDone);
tempList = lcons(fjoinNode, NIL);
tempList = nconc(tempList, fjoinList);
tempList = lcons(fjoinNode, fjoinList);
newTlist = lappend(newTlist, tempList);
}
return newTlist;