diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-11-28 04:35:32 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-11-28 04:35:32 +0000 |
commit | 3d376fce8dd45d43fb6dbeb5a08c08400a589ff8 (patch) | |
tree | 0423df93c1a0b741442acc5120ab73291fab9610 /src/backend/nodes/outfuncs.c | |
parent | 8a9acd3c410c1365f9f16e32910b8c942aeceef2 (diff) | |
download | postgresql-3d376fce8dd45d43fb6dbeb5a08c08400a589ff8.tar.gz postgresql-3d376fce8dd45d43fb6dbeb5a08c08400a589ff8.zip |
Change the parser to translate "foo [NOT] IN (expression-list)" to
ScalarArrayOpExpr when possible, that is, whenever there is an array type
for the values of the expression list. This completes the project I've
been working on to improve the speed of index searches with long IN lists,
as per discussion back in mid-October.
I did not force initdb, but until you do one you will see failures in the
"rules" regression test, because some of the standard system views use IN
and their compiled formats have changed.
Diffstat (limited to 'src/backend/nodes/outfuncs.c')
-rw-r--r-- | src/backend/nodes/outfuncs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 5ba31580ae7..646ac6daabf 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.263 2005/11/26 22:14:56 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.264 2005/11/28 04:35:30 tgl Exp $ * * NOTES * Every node type that can appear in stored rules' parsetrees *must* @@ -1597,6 +1597,10 @@ _outAExpr(StringInfo str, A_Expr *node) appendStringInfo(str, " OF "); WRITE_NODE_FIELD(name); break; + case AEXPR_IN: + appendStringInfo(str, " IN "); + WRITE_NODE_FIELD(name); + break; default: appendStringInfo(str, " ??"); break; @@ -1658,6 +1662,7 @@ _outAConst(StringInfo str, A_Const *node) { WRITE_NODE_TYPE("A_CONST"); + appendStringInfo(str, " :val "); _outValue(str, &(node->val)); WRITE_NODE_FIELD(typename); } |