Re: with and trigger

Поиск
Список
Период
Сортировка
От Geoff Winkless
Тема Re: with and trigger
Дата
Msg-id CAEzk6fdXusx=6PeUvOgDpeQE7ScDT8OAYtBXq8fsfUd8=9ZOvQ@mail.gmail.com
обсуждение исходный текст
Ответ на with and trigger  (PegoraroF10 <marcos@f10.com.br>)
Ответы Re: with and trigger  (PegoraroF10 <marcos@f10.com.br>)
Список pgsql-general
On Wed, 29 May 2019 at 12:52, PegoraroF10 <marcos@f10.com.br> wrote:
This trigger will not work because Master record was not inserted yet.

That seems reasonable. Since the transaction is meant to be atomic any select within the query should return data from tables as they are at the start of the transaction, the insert won't happen (as far as the rest of the query is concerned) until it commits.

Or have I misunderstood what you're saying?

Geoff

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

Предыдущее
От: PegoraroF10
Дата:
Сообщение: with and trigger
Следующее
От: Fabrízio de Royes Mello
Дата:
Сообщение: Re: with and trigger