From 9091e8d1b233faf9994518fda7fcc171fddb53ac Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 5 Jan 2004 05:07:36 +0000 Subject: Add the ability to extract OR indexscan conditions from OR-of-AND join conditions in which each OR subclause includes a constraint on the same relation. This implements the other useful side-effect of conversion to CNF format, without its unpleasant side-effects. As per pghackers discussion of a few weeks ago. --- src/backend/nodes/copyfuncs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/backend/nodes/copyfuncs.c') diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 29f55e0abb8..75c2fa898d9 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -15,7 +15,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.272 2004/01/04 03:51:52 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.273 2004/01/05 05:07:35 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1168,8 +1168,9 @@ _copyRestrictInfo(RestrictInfo *from) RestrictInfo *newnode = makeNode(RestrictInfo); COPY_NODE_FIELD(clause); - COPY_SCALAR_FIELD(ispusheddown); - COPY_SCALAR_FIELD(canjoin); + COPY_SCALAR_FIELD(is_pushed_down); + COPY_SCALAR_FIELD(valid_everywhere); + COPY_SCALAR_FIELD(can_join); COPY_BITMAPSET_FIELD(clause_relids); COPY_BITMAPSET_FIELD(left_relids); COPY_BITMAPSET_FIELD(right_relids); -- cgit v1.2.3