Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WsEAP-0003BL-QW for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Jun 2014 16:35:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WsEAP-0003Yh-8z for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Jun 2014 16:35:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WsEAO-0003YX-CX for pgsql-bugs@postgresql.org; Wed, 04 Jun 2014 16:35:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WsEAK-0001UP-P9 for pgsql-bugs@postgresql.org; Wed, 04 Jun 2014 16:35:55 +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 s54GZobV022475; Wed, 4 Jun 2014 12:35:50 -0400 From: Tom Lane To: gunnar.bluth@pro-open.de cc: pgsql-bugs@postgresql.org Subject: Re: BUG #10527: TRAP when joining local table with view on tds_fdw foreign table In-reply-to: <20140604161646.22902.19572@wrigleys.postgresql.org> References: <20140604161646.22902.19572@wrigleys.postgresql.org> Comments: In-reply-to gunnar.bluth@pro-open.de message dated "Wed, 04 Jun 2014 16:16:46 -0000" Date: Wed, 04 Jun 2014 12:35:50 -0400 Message-ID: <22474.1401899750@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org gunnar.bluth@pro-open.de writes: > Not sure if this might be a 9.4 regression or if the FDW interface has > changed and tds_fdw needs some tweaking, however: > When I join a local table with a view on a foreign table (tds_fdw), I get > TRAP: FailedAssertion("!(outer_rel->rows > 0)", File: "indxpath.c", Line: > 1861) This looks like tds_fdw is neglecting its responsibility to deliver a positive rowcount estimate for the foreign relation. (Most places in the core code use clamp_row_est(), which forces the value to be more than zero along with rounding it to nearest integer.) You'll need to report it to the author of tds_fdw. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs