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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: how to ensure a client waits for a previous transaction to finish?
Дата
Msg-id 24656.1260220361@sss.pgh.pa.us
обсуждение исходный текст
Ответ на how to ensure a client waits for a previous transaction to finish?  (Dan Kortschak <dan.kortschak@adelaide.edu.au>)
Ответы Re: how to ensure a client waits for a previous transaction to finish?  (Dan Kortschak <dan.kortschak@adelaide.edu.au>)
Список pgsql-general
Dan Kortschak <dan.kortschak@adelaide.edu.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Dan Kortschak
Дата:
Сообщение: how to ensure a client waits for a previous transaction to finish?
Следующее
От: John R Pierce
Дата:
Сообщение: Re: how to ensure a client waits for a previous transaction to finish?