Re: Revisited: Transactions, insert unique.

Поиск
Список
Период
Сортировка
От rmcm@compsoft.com.au
Тема Re: Revisited: Transactions, insert unique.
Дата
Msg-id 14599.47327.858251.453598@fellini.mcmaster.wattle.id.au
обсуждение исходный текст
Ответ на Re: Revisited: Transactions, insert unique.  (Ed Loehr <eloehr@austin.rr.com>)
Список pgsql-general
Ed,

I think the lack of SELECT may be the critical item here, with respect to
reconciling pg's behaviour with (some of) it's docs. The documentation
for SET indicates that the snapshot is taken from the first DML
statement (I cannot locate a similar reference in the MVCC dos). This appears
to be consistent with your observation below.

Rex

Ed Loehr writes:
 > Even if I call SET after BEGIN, it is not consistent with docs or the
 > standard (see pghackers discussion under same subject), as the two scripts
 > below seem to demonstrate.
 >
 > [Rex:  There is a subtle difference between your sequence and mine.  Insert
 > from B first, and don't do any select from A before you attempt the insert,
 > as below.]
 >

--
Rex McMaster                       rex@mcmaster.wattle.id.au
                     http://www.compsoft.com.au/~rmcm/pgp-pk

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

Предыдущее
От: "Hiroshi Inoue"
Дата:
Сообщение: RE: Revisited: Transactions, insert unique.
Следующее
От: Joachim Achtzehnter
Дата:
Сообщение: Re: Revisited: Transactions, insert unique.