diff options
| author | Neil Conway <neilc@samurai.com> | 2004-05-30 23:40:41 +0000 |
|---|---|---|
| committer | Neil Conway <neilc@samurai.com> | 2004-05-30 23:40:41 +0000 |
| commit | 72b6ad6313387110cb36b69a3732cd0936c3eba4 (patch) | |
| tree | e43da77aaeb3a9d7f4997ddb2b91ae88001ea462 /src/backend/optimizer/path/clausesel.c | |
| parent | ec0b1f271639ff0fafd1310de3c47cbb214c6294 (diff) | |
| download | postgresql-72b6ad6313387110cb36b69a3732cd0936c3eba4.tar.gz | |
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.
Diffstat (limited to 'src/backend/optimizer/path/clausesel.c')
| -rw-r--r-- | src/backend/optimizer/path/clausesel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/optimizer/path/clausesel.c b/src/backend/optimizer/path/clausesel.c index c8b54bf223..e736c6e309 100644 --- a/src/backend/optimizer/path/clausesel.c +++ b/src/backend/optimizer/path/clausesel.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/optimizer/path/clausesel.c,v 1.66 2004/05/26 04:41:21 neilc Exp $ + * $PostgreSQL: pgsql/src/backend/optimizer/path/clausesel.c,v 1.67 2004/05/30 23:40:28 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -131,7 +131,7 @@ clauselist_selectivity(Query *root, * behave in the simple way we are expecting.) Most of the tests * here can be done more efficiently with rinfo than without. */ - if (is_opclause(clause) && length(((OpExpr *) clause)->args) == 2) + if (is_opclause(clause) && list_length(((OpExpr *) clause)->args) == 2) { OpExpr *expr = (OpExpr *) clause; bool varonleft = true; @@ -480,8 +480,8 @@ clause_selectivity(Query *root, */ s1 = restriction_selectivity(root, BooleanEqualOperator, - makeList2(var, - makeBoolConst(true, + list_make2(var, + makeBoolConst(true, false)), varRelid); } |
