Re: dblink ,dblink_exec not participating in a Transaction??

Поиск
Список
Период
Сортировка
От carty mc
Тема Re: dblink ,dblink_exec not participating in a Transaction??
Дата
Msg-id 787139.86135.qm@web58515.mail.re3.yahoo.com
обсуждение исходный текст
Ответ на Re: dblink ,dblink_exec not participating in a Transaction??  ("Roberts, Jon" <Jon.Roberts@asurion.com>)
Список pgsql-general
Jon,
Thanks for the reply.
As i explained earlier, I am using java (via hibernate) to control the overall transaction.
I cannot have begin/rollback statements for dblink_exec. 
Only when the entire method call from java succeeds I want the transaction to be commited.
 
I dont want a funtion controlling the transaction partially. I thought there would be easier way for letting dblink participate in the incoming transaction (i.e. from java-jdbc method call) and commit only when the main transaction commits.
I wanted to treat the whole updates inside the function as one, and let java method call decide whether to commit or rollback.
 
thanks,


You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Foreign keys causing conflicts leading toserialization failures
Следующее
От: Steve Atkins
Дата:
Сообщение: Re: Is there an md5sum for tables?