pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mauri Sahlberg <Mauri.Sahlberg@claymountain.com>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Procedures, triggers and transactions...
Date: Sun, 25 Jan 2004 16:08:49 -0500
Message-ID: <28573.1075064929@sss.pgh.pa.us> (raw)
In-Reply-To: <1075062062.3217.29.camel@fault>
References: <1075062062.3217.29.camel@fault>

Mauri Sahlberg <Mauri.Sahlberg@claymountain.com> writes:
> The framework is that a c++ application transforms xml-input data to
> sql-procedure calls with appropriate parameters who in turn call another
> procedures who in turn call another procedures... And as all procedures
> are run in the transaction of the outermost select (in this case the c++
> application's select that called the initial procedure) we have huge
> problems with concurrency.

Why do you have "huge problems with concurrency"?  Under MVCC the only
reason for such things to conflict is if different transactions try to
update the same rows.  If you do have such updates, it would seem that
breaking the transactions into smaller ones would be likely to introduce
correctness issues ...

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <28573.1075064929@sss.pgh.pa.us>
Permalink:  ../28573.1075064929@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28573.1075064929@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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Mauri.Sahlberg@claymountain.com
  Subject: Re: Procedures, triggers and transactions...
  In-Reply-To: <28573.1075064929@sss.pgh.pa.us>
  References: <1075062062.3217.29.camel@fault> <28573.1075064929@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