Re: BUG #10527: TRAP when joining local table with view on tds_fdw foreign table

From: "Gunnar \"Nick\" Bluth" <gunnar(dot)bluth(at)pro-open(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #10527: TRAP when joining local table with view on tds_fdw foreign table
Date: 2014-06-04 17:56:01
Message-ID: 538F5DB1.9050304@pro-open.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Am 04.06.2014 18:35, schrieb Tom Lane:
> gunnar(dot)bluth(at)pro-open(dot)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(dot)bluth(at)pro-open(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2014-06-04 18:06:07 Re: BUG #10527: TRAP when joining local table with view on tds_fdw foreign table
Previous Message Alvaro Herrera 2014-06-04 17:46:59 Re: BUG #8673: Could not open file "pg_multixact/members/xxxx" on slave during hot_standby