one or 2 transactions?

Поиск
Список
Период
Сортировка
От Jean-Yves F. Barbier
Тема one or 2 transactions?
Дата
Msg-id 4B2146FA.3060108@gmail.com
обсуждение исходный текст
Ответы Re: one or 2 transactions?  (Andreas Kretschmer <akretschmer@spamfence.net>)
Список pgsql-novice
Hi list,

I've got tables: account & client, creating a client must automatically
create the corresponding account that'll be a foreign key into client.

AFAI read, I must DEFERRABLE INITIALLY DEFERRED the foreign key constraint
into client.

But can I do all this into only one transaction (writing account's row
before client's), or am I obliged to have 2 distinct transactions?

JY
--
"Wish not to seem, but to be, the best."
        -- Aeschylus

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

Предыдущее
От: Brian Modra
Дата:
Сообщение: Re: Is autovaccum lazy?
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: one or 2 transactions?