Re: how to ensure a client waits for a previous transaction to finish?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dan Kortschak <dan(dot)kortschak(at)adelaide(dot)edu(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how to ensure a client waits for a previous transaction to finish?
Date: 2009-12-07 21:12:41
Message-ID: 24656.1260220361@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dan Kortschak <dan(dot)kortschak(at)adelaide(dot)edu(dot)au> writes:
> How can I ensure the query scripts wait until the population transaction
> processes have finished? I've looked at 'SET TRANSACTION ISOLATION LEVEL
> SERIALIZABLE' (to us in the query scripts I thought), but I'm not sure
> that is what I want.

It's not. What you want is to COMMIT and make sure you've gotten the
command completion response for that. Possibly perl is complicating
matters with some sort of autocommit logic behind your back.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2009-12-07 21:16:05 Re: how to ensure a client waits for a previous transaction to finish?
Previous Message Dan Kortschak 2009-12-07 21:00:07 how to ensure a client waits for a previous transaction to finish?