Re: Multiple postgresql functions in a single transaction

Поиск
Список
Период
Сортировка
От Jyoti Seth
Тема Re: Multiple postgresql functions in a single transaction
Дата
Msg-id 001301c86893$200ccc50$602664f0$@com
обсуждение исходный текст
Ответ на Re: Multiple postgresql functions in a single transaction  ("Robins Tharakan" <tharakan@gmail.com>)
Список pgsql-sql

Thanks. I am not using sequences. I tried an example and it worked.

 

From: Robins Tharakan [mailto:tharakan@gmail.com]
Sent: Wednesday, February 06, 2008 12:54 PM
To: Jyoti Seth
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Multiple postgresql functions in a single transaction

 

 

It can be done, but it depends on how you are generating the value in the first function.
If you sequences though you may have to take care of reverting it yourself.

Robins

 

---------- Forwarded message ----------
From: Jyoti Seth <jyotiseth2001@gmail.com>
Date: Feb 6, 2008 11:51 AM
Subject: [SQL] Multiple postgresql functions in a single transaction
To: pgsql-sql@postgresql.org


Hi,

I have two postgresql functions. One function is calling another function
for certain value. I want that these two functions work under single
transaction so that even if the value gets generated in the second function
and the first function that calls the second function fails. Then the value
generated in the second function should also roll back.

Please let me know if we can execute two functions of postgresql in a single
transaction.

Thanks,
Jyoti Seth






---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

 

 

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

Предыдущее
От: "Robins Tharakan"
Дата:
Сообщение: Re: Multiple postgresql functions in a single transaction
Следующее
От:
Дата:
Сообщение: Re: Multiple postgresql functions in a single transaction