Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxF9m-0008E2-Ff for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Apr 2017 15:53:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cxF9l-0000L5-FL for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Apr 2017 15:53:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cxF8F-00062f-U9 for pgsql-hackers@postgresql.org; Sun, 09 Apr 2017 15:52:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cxF89-00005M-42 for pgsql-hackers@postgresql.org; Sun, 09 Apr 2017 15:52:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v39FpqDh011669; Sun, 9 Apr 2017 11:51:52 -0400 From: Tom Lane To: Andreas Seltenreich cc: pgsql-hackers@postgresql.org Subject: Re: [sqlsmith] ERROR: badly formatted node string "RESTRICTINFO... In-reply-to: <87tw5x4vcu.fsf@credativ.de> References: <87tw5x4vcu.fsf@credativ.de> Comments: In-reply-to Andreas Seltenreich message dated "Sun, 09 Apr 2017 14:29:53 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11667.1491753112.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 09 Apr 2017 11:51:52 -0400 Message-ID: <11668.1491753112@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andreas Seltenreich writes: > regression=3D> select (select max(result) from fdw_postgres.num_result) f= rom tt0; > ERROR: badly formatted node string "RESTRICTINFO :clause {NULLTEST :"... > CONTEXT: parallel worker Apparently, postgres_fdw is trying to store RestrictInfos in the fdw_private field of a ForeignScan node. That won't do; those aren't supposed to be present in a finished plan tree, so there's no readfuncs.c support for them (and we're not adding it). Don't know if this is a new bug, or ancient but not previously reachable. It seems to be nearly the inverse of the problem you found yesterday, in which postgres_fdw was stripping RestrictInfos sooner than it really ought to. Apparently that whole business needs a fresh look. regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers