From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mikko Tiihonen <Mikko.Tiihonen@nitorcreations.com>
Cc: Craig Ringer <craig@2ndquadrant.com>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Pipelining executions to postgresql server
Date: Mon, 03 Nov 2014 20:10:05 -0500
Message-ID: <32086.1415063405@sss.pgh.pa.us> (raw)
In-Reply-To: <1415058981678.77807@nitorcreations.com>
References: <1414850643686.34687@nitorcreations.com>
<20141101173116.GR13584@awork2.anarazel.de>
<1414930308808.49160@nitorcreations.com>
<20141102122320.GB28295@alap3.anarazel.de>
<1414934833900.88748@nitorcreations.com>
<545790D8.9090201@2ndquadrant.com>
<1415058981678.77807@nitorcreations.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Mikko Tiihonen <Mikko.Tiihonen@nitorcreations.com> writes:
> I do not quite grasp why not sending Sync is so important. My proof of concept setup was for queries with autocommit enabled.
The point is that that will be very, very much harder to use than doing
it the other way. It's fairly easy to reason about the results of
single-transaction pipelined queries: they're all or nothing. If you
fire off queries that are going to autocommit independently, then you
have to worry about all combinations of success/failure, and you won't
have the opportunity to adjust on the fly. It'll be very much like
sending a fixed (predetermined) SQL script to the server using a scripting
language that lacks any conditionals. People certainly do use fixed
scripts sometimes, but they usually find out they want them wrapped into
single transactions, because otherwise they're left with a horrible mess
if the script goes off the rails at all.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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, Mikko.Tiihonen@nitorcreations.com, craig@2ndquadrant.com, andres@2ndquadrant.com, pgsql-hackers@postgresql.org
Subject: Re: Pipelining executions to postgresql server
In-Reply-To: <32086.1415063405@sss.pgh.pa.us>
References: <1414850643686.34687@nitorcreations.com> <20141101173116.GR13584@awork2.anarazel.de> <1414930308808.49160@nitorcreations.com> <20141102122320.GB28295@alap3.anarazel.de> <1414934833900.88748@nitorcreations.com> <545790D8.9090201@2ndquadrant.com> <1415058981678.77807@nitorcreations.com> <32086.1415063405@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