Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WsFQ5-00060R-CO for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Jun 2014 17:56:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WsFQ4-0001As-Qn for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Jun 2014 17:56:12 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WsFQ3-00018e-MW for pgsql-bugs@postgresql.org; Wed, 04 Jun 2014 17:56:11 +0000 Received: from pro-open.de ([87.106.136.39] helo=www.pro-open.de) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WsFQ0-00007o-DQ for pgsql-bugs@postgresql.org; Wed, 04 Jun 2014 17:56:09 +0000 Received: from [192.168.0.18] (ip-5-146-114-157.unitymediagroup.de [5.146.114.157]) by www.pro-open.de (Postfix) with ESMTP id 668FB100A0B3; Wed, 4 Jun 2014 19:56:01 +0200 (CEST) Message-ID: <538F5DB1.9050304@pro-open.de> Date: Wed, 04 Jun 2014 19:56:01 +0200 From: "Gunnar \"Nick\" Bluth" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: BUG #10527: TRAP when joining local table with view on tds_fdw foreign table References: <20140604161646.22902.19572@wrigleys.postgresql.org> <22474.1401899750@sss.pgh.pa.us> In-Reply-To: <22474.1401899750@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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 Am 04.06.2014 18:35, schrieb Tom Lane: > 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 Chhers Tom, will do so. N.B. though that I've not had this issue when doing exactly the same stuff on 9.3, hence the bug report. Might be worth a footnote in the release notes (i.e., _if_ e.g. the failing assertion has been introduced w/ 9.4). Cheers, -- Gunnar "Nick" Bluth RHCE/SCLA Mobil +49 172 8853339 Email: gunnar.bluth@pro-open.de __________________________________________________________________________ In 1984 mainstream users were choosing VMS over UNIX. Ten years later they are choosing Windows over UNIX. What part of that message aren't you getting? - Tom Payne -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs