Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Uie2c-00061P-7A for pgsql-admin@arkaria.postgresql.org; Sat, 01 Jun 2013 05:07:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Uie2b-0005Ko-Dg for pgsql-admin@arkaria.postgresql.org; Sat, 01 Jun 2013 05:07:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Uie2a-0005Ki-Fh for pgsql-admin@postgresql.org; Sat, 01 Jun 2013 05:07:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uie2W-0007Ak-JD for pgsql-admin@postgresql.org; Sat, 01 Jun 2013 05:07:44 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r5157Yac015376; Sat, 1 Jun 2013 01:07:34 -0400 (EDT) From: Tom Lane To: Alvaro Herrera cc: "ktm@rice.edu" , Steve.Toutant@inspq.qc.ca, pgsql-admin@postgresql.org Subject: Re: exceeded MAX_ALLOCATED_DESCS while trying to open file In-reply-to: <20130528163332.GW15045@eldon.alvh.no-ip.org> References: <20130528154837.GQ12507@aart.rice.edu> <20130528163332.GW15045@eldon.alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Tue, 28 May 2013 12:33:33 -0400" Date: Sat, 01 Jun 2013 01:07:34 -0400 Message-ID: <15375.1370063254@sss.pgh.pa.us> X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Alvaro Herrera writes: > ktm@rice.edu wrote: >> Each SELECT opens your FOREIGN TABLE so you are opening it 10 times. This is >> hardcoded by a #define in ./src/backend/storage/file/fd.c during the build so >> you would need to recompile the software yourself to change it. Can you re- >> write your query using a single SELECT or possibly read the data into a >> temporary table for processing? > To me this sounds like a bug in whatever FDW is being used. Yeah, we need to fix file_fdw so that it's using virtual rather than physical file descriptors ... regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin