From 1bdf124b94af3c24d3c3083c820804274df8262b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 14 Nov 2005 23:54:23 +0000 Subject: =?UTF-8?q?Restore=20the=20former=20RestrictInfo=20field=20valid?= =?UTF-8?q?=5Feverywhere=20(but=20invert=20the=20flag=20sense=20and=20rena?= =?UTF-8?q?me=20to=20"outerjoin=5Fdelayed"=20to=20more=20clearly=20reflect?= =?UTF-8?q?=20what=20it=20means).=20=20I=20had=20decided=20that=20it=20was?= =?UTF-8?q?=20redundant=20in=208.1,=20but=20the=20folly=20of=20this=20is?= =?UTF-8?q?=20exposed=20by=20a=20bug=20report=20from=20Sebastian=20B=C3=B6?= =?UTF-8?q?ck.=20=20The=20place=20where=20it's=20needed=20is=20to=20preven?= =?UTF-8?q?t=20orindxpath.c=20from=20cherry-picking=20arms=20of=20an=20out?= =?UTF-8?q?er-join=20OR=20clause=20to=20form=20a=20relation=20restriction?= =?UTF-8?q?=20that=20isn't=20actually=20legal=20to=20push=20down=20to=20th?= =?UTF-8?q?e=20relation=20scan=20level.=20=20There=20may=20be=20some=20leg?= =?UTF-8?q?al=20cases=20that=20this=20forbids=20optimizing,=20but=20we'd?= =?UTF-8?q?=20need=20much=20closer=20analysis=20to=20determine=20it.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/nodes/outfuncs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend/nodes/outfuncs.c') diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 19306b3e53..16acd5d721 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.261 2005/10/15 02:49:18 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.262 2005/11/14 23:54:15 tgl Exp $ * * NOTES * Every node type that can appear in stored rules' parsetrees *must* @@ -1241,6 +1241,7 @@ _outRestrictInfo(StringInfo str, RestrictInfo *node) /* NB: this isn't a complete set of fields */ WRITE_NODE_FIELD(clause); WRITE_BOOL_FIELD(is_pushed_down); + WRITE_BOOL_FIELD(outerjoin_delayed); WRITE_BOOL_FIELD(can_join); WRITE_BITMAPSET_FIELD(clause_relids); WRITE_BITMAPSET_FIELD(required_relids); -- cgit v1.2.1