pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kris Jurka <books@ejurka.com>
Cc: Bahadur Singh <bahadursingh@yahoo.com>
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: BUG #1347: Bulk Import stopps after a while ( 8.0.0.
Date: Mon, 13 Dec 2004 12:21:03 -0500
Message-ID: <25966.1102958463@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.BSO.4.56.0412130234430.26362@leary.csoft.net>
References: <20041213072018.2B6C2738805@www.postgresql.com>
	<Pine.BSO.4.56.0412130234430.26362@leary.csoft.net>

Kris Jurka <books@ejurka.com> 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



view thread (17+ messages)  latest in thread

Message-ID: <25966.1102958463@sss.pgh.pa.us>
Permalink:  ../25966.1102958463@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25966.1102958463@sss.pgh.pa.us

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, books@ejurka.com, bahadursingh@yahoo.com, pgsql-bugs@postgresql.org
  Subject: Re: BUG #1347: Bulk Import stopps after a while ( 8.0.0.
  In-Reply-To: <25966.1102958463@sss.pgh.pa.us>
  References: <20041213072018.2B6C2738805@www.postgresql.com> <Pine.BSO.4.56.0412130234430.26362@leary.csoft.net> <25966.1102958463@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