X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B7A3A3A614D for ; Mon, 13 Dec 2004 17:21:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98607-05 for ; Mon, 13 Dec 2004 17:21:05 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id D87B13A62B1 for ; Mon, 13 Dec 2004 17:21:04 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id iBDHL3ob025967; Mon, 13 Dec 2004 12:21:04 -0500 (EST) To: Kris Jurka Cc: Bahadur Singh , pgsql-bugs@postgresql.org, pgsql-jdbc@postgresql.org Subject: Re: BUG #1347: Bulk Import stopps after a while ( 8.0.0. In-reply-to: References: <20041213072018.2B6C2738805@www.postgresql.com> Comments: In-reply-to Kris Jurka message dated "Mon, 13 Dec 2004 02:46:35 -0500" Date: Mon, 13 Dec 2004 12:21:03 -0500 Message-ID: <25966.1102958463@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/157 X-Sequence-Number: 10288 Kris Jurka writes: > // To avoid this, we guess at how many queries we can send before the > // server -> driver stream's buffer is full (MAX_BUFFERED_QUERIES). It seems essentially impossible for the driver to do this reliably, since it has no clue how much data any one query will return. How about instead thinking in terms of not filling the driver->server channel? You have a good handle on how much data you have sent (or at least you could keep track of that), and if you bound it to 64K or so then you should be safe. Perhaps the limit ought to be easily configurable just in case, but at least you'd be measuring something measurable. regards, tom lane