pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gunnar \"Nick\" Bluth <gunnar.bluth@pro-open.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
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 19:56:01 +0200
Message-ID: <538F5DB1.9050304@pro-open.de> (raw)
In-Reply-To: <22474.1401899750@sss.pgh.pa.us>
References: <20140604161646.22902.19572@wrigleys.postgresql.org>
	<22474.1401899750@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (6+ messages)  latest in thread

Message-ID: <538F5DB1.9050304@pro-open.de>
Permalink:  ../538F5DB1.9050304@pro-open.de/
Also on:    postgresql.org/message-id/538F5DB1.9050304@pro-open.de

 · 

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: gunnar.bluth@pro-open.de, tgl@sss.pgh.pa.us
  Subject: Re: BUG #10527: TRAP when joining local table with view on tds_fdw foreign table
  In-Reply-To: <538F5DB1.9050304@pro-open.de>
  References: <20140604161646.22902.19572@wrigleys.postgresql.org> <22474.1401899750@sss.pgh.pa.us> <538F5DB1.9050304@pro-open.de>

* 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