On 11/01/2014 10:04 PM, Mikko Tiihonen wrote:
> Hi,
> 
> I created a proof of concecpt patch for postgresql JDBC driver that allows 
> the caller to do pipelining of requests within a transaction. The pipelining 
> here means same as for HTTP: the client can send the next execution already 
> before waiting for the response of the previous request to be fully processed.

... but ... it already does that.

Use batches, and that's exactly what it'll do.

Statement.addBatch(String)
or
PreparedStatement.addBatch()

> What kind of problems could pipelining cause (assuming we limit it to rather 
> simple use cases only)?

Client/server pipleline deadlocks due to how PgJDBC manages it.

See the details:

https://github.com/pgjdbc/pgjdbc/issues/195

and

https://github.com/pgjdbc/pgjdbc/issues/194

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to