pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
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
Date: Wed, 04 Jun 2014 12:35:50 -0400
Message-ID: <22474.1401899750@sss.pgh.pa.us> (raw)
In-Reply-To: <20140604161646.22902.19572@wrigleys.postgresql.org>
References: <20140604161646.22902.19572@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (6+ messages)  latest in thread

Message-ID: <22474.1401899750@sss.pgh.pa.us>
Permalink:  ../22474.1401899750@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22474.1401899750@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gunnar.bluth@pro-open.de
  Subject: Re: BUG #10527: TRAP when joining local table with view on tds_fdw foreign table
  In-Reply-To: <22474.1401899750@sss.pgh.pa.us>
  References: <20140604161646.22902.19572@wrigleys.postgresql.org> <22474.1401899750@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox