One transaction and several processes

Поиск
Список
Период
Сортировка
От Valery Kuzmin
Тема One transaction and several processes
Дата
Msg-id CAHRx4ijKggM=gEbZjgM3WojVEnuQnhSPS-0sdCo9MtNOq_Sgpg@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
Hi,

Can multiple processes participate in a single transaction's execution?
I need to do the following actions sequence:
1. Calling service begins transaction. At this step transaction
manager generate new XID.
2. Calling service updates some data.
3. Need to detach a transaction from a service context before other
service is called.
4. Called service resume transaction using XID.
5. Called service updates its data.
6. Calling service gets control, resume transaction using XID and does commit.
How can the third and fourth step be implemented?

Best regards,
Valery


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

Предыдущее
От: "Enrico Thierbach"
Дата:
Сообщение: Re: Trouble matching a nested value in JSONB entries
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Analyze plan of foreign data wrapper