From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: ktm@rice.edu <ktm@rice.edu>
Cc: Steve.Toutant@inspq.qc.ca
Cc: pgsql-admin@postgresql.org
Subject: Re: exceeded MAX_ALLOCATED_DESCS while trying to open file
Date: Sat, 01 Jun 2013 01:07:34 -0400
Message-ID: <15375.1370063254@sss.pgh.pa.us> (raw)
In-Reply-To: <20130528163332.GW15045@eldon.alvh.no-ip.org>
References: <OF419B5767.8A3C9ADB-ON85257B79.005491E9-85257B79.0054F6F1@isn.rtss.qc.ca>
<20130528154837.GQ12507@aart.rice.edu>
<20130528163332.GW15045@eldon.alvh.no-ip.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Alvaro Herrera <alvherre@2ndquadrant.com> 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
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, ktm@rice.edu, Steve.Toutant@inspq.qc.ca
Subject: Re: exceeded MAX_ALLOCATED_DESCS while trying to open file
In-Reply-To: <15375.1370063254@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