1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

Knock down a couple more lappend() hotspots for large WHERE clauses.

This commit is contained in:
Tom Lane
2003-05-28 23:06:16 +00:00
parent 8a6ac83dab
commit 7c7139cf29
2 changed files with 40 additions and 32 deletions

View File

@ -7,7 +7,7 @@
* Portions Copyright (c) 1994-5, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.109 2003/05/08 18:16:36 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.110 2003/05/28 23:06:16 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -1033,12 +1033,15 @@ make_ors_ands_explicit(List *orclauses)
return (Node *) make_ands_explicit(lfirst(orclauses));
else
{
List *args = NIL;
FastList args;
List *orptr;
FastListInit(&args);
foreach(orptr, orclauses)
args = lappend(args, make_ands_explicit(lfirst(orptr)));
{
FastAppend(&args, make_ands_explicit(lfirst(orptr)));
}
return (Node *) make_orclause(args);
return (Node *) make_orclause(FastListValue(&args));
}
}