pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: mark.manley@tapad.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14709: inconsistent answers with foreign data wrappers to mysql
Date: Thu, 15 Jun 2017 18:43:56 -0400
Message-ID: <13822.1497566636@sss.pgh.pa.us> (raw)
In-Reply-To: <20170615220606.1424.97802@wrigleys.postgresql.org>
References: <20170615220606.1424.97802@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

mark.manley@tapad.com writes:
> When using a foreign data wrapper from our 9.6.2 database to a MySQL 5.7
> database, we get inconsistent results.

My first thought is that you're looking at a bug in the mysql FDW,
probably incorrect pushdown of conditions to the mysql server.  You
should enable logging on the mysql server and look at the queries
generated by the FDW, comparing those to EXPLAIN output to see which
conditions get checked locally as opposed to being sent to the remote.

If you can identify what the FDW is doing wrong, reporting that to
the FDW's authors might get some results.  (I don't know if they
read this bugs list.)

			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 (8+ messages)  latest in thread

Message-ID: <13822.1497566636@sss.pgh.pa.us>
Permalink:  ../13822.1497566636@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13822.1497566636@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, mark.manley@tapad.com
  Subject: Re: BUG #14709: inconsistent answers with foreign data wrappers to mysql
  In-Reply-To: <13822.1497566636@sss.pgh.pa.us>
  References: <20170615220606.1424.97802@wrigleys.postgresql.org> <13822.1497566636@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