Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id DECDC1B76BD6 for ; Thu, 26 Jan 2012 08:46:55 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RqOj4-00010G-SG for pgsql-bugs@postgresql.org; Thu, 26 Jan 2012 12:46:55 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RqOir-0005W6-QA for pgsql-bugs@postgresql.org; Thu, 26 Jan 2012 12:46:38 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RqOir-0002Js-Dd for pgsql-bugs@postgresql.org; Thu, 26 Jan 2012 12:46:37 +0000 Date: Thu, 26 Jan 2012 12:46:37 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6411: Backend process' crash when a foreign table is used in a dependent subquery on select clause To: pgsql-bugs@postgresql.org From: emre.hasegeli@tart.com.tr X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/176 X-Sequence-Number: 32243 The following bug has been logged on the website: Bug reference: 6411 Logged by: Using a Foreign Table in a Dependent Subquery Email address: emre.hasegeli@tart.com.tr PostgreSQL version: 9.1.2 Operating system: Linux 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 2 Description: = I installed Dave Page's MySQL Foreign Data Wrapper on GitHub [1]. It works fine until foreign table is used in a dependent subquery on select clause. How to reproduce: Create extension mysql_fdw; Create server AMySQLServer foreign data wrapper mysql_fdw = options (address '***', port '3306'); Create user mapping for public = server AMySQLServer options (username '***', password '***'); Create foreign table AForeignTable (id integer) server AMySQLServer options (query 'Select id from ASchema.ATable'); Select id, (select true from AForeignTable where AForeignTable.id =3D ATable.id) from ATable; WARNING: 57P02: terminating connection because of crash of another server process DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. HINT: In a moment you should be able to reconnect to the database and repeat your command. [1] https://github.com/dpage/mysql_fdw