Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLdUh-00077a-HM for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Jun 2017 22:44:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dLdUg-0004Mg-Qy for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Jun 2017 22:44:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dLdUg-0004MX-HR for pgsql-bugs@postgresql.org; Thu, 15 Jun 2017 22:44:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dLdUc-0002tP-LC for pgsql-bugs@postgresql.org; Thu, 15 Jun 2017 22:44:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v5FMhvet013823; Thu, 15 Jun 2017 18:43:57 -0400 From: Tom Lane To: mark.manley@tapad.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14709: inconsistent answers with foreign data wrappers to mysql In-reply-to: <20170615220606.1424.97802@wrigleys.postgresql.org> References: <20170615220606.1424.97802@wrigleys.postgresql.org> Comments: In-reply-to mark.manley@tapad.com message dated "Thu, 15 Jun 2017 22:06:06 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13821.1497566636.1@sss.pgh.pa.us> Date: Thu, 15 Jun 2017 18:43:56 -0400 Message-ID: <13822.1497566636@sss.pgh.pa.us> 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 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