Sharing a transaction between programs.

Поиск
Список
Период
Сортировка
От Fernando Schapachnik
Тема Sharing a transaction between programs.
Дата
Msg-id 20030211210108.GF324@bal740r0.mecon.gov.ar
обсуждение исходный текст
Ответы Re: Sharing a transaction between programs.  (Steve Atkins <steve@blighty.com>)
Список pgsql-general
I'd like to have two programs cooperating, each implementing a different module
of an application. I'd also wish they perform a single transaction (I'd use
distributed transaction if they were available). As this two application would
probably be written in different programming languages, I'd like to do something
like.

App1:
    connect to the db;
    begin transaction;
    do work;
    call app2 (app1 passes a 'handler' to the transaction to app2)
    commit;

App2:
    receive 'connection handler';
    do work;


Is this (or something similar) possible?

Thanks!


Fernando.

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

Предыдущее
От: "Eduardo"
Дата:
Сообщение: PL/PGSQL TUTORIAL
Следующее
От: Stephane Schildknecht
Дата:
Сообщение: Postgresql Partnership