Search Postgresql Archives

Re: can you do rollback in a trigger function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Tue, Oct 15, 2013 at 2:38 PM, Quang Thoi <Quang_Thoi@xxxxxxxxxxxx> wrote:

I want to roll back deletion if there is a reference (FK) in another table.

Can I explicitly call a rollback inside a function?


You should RAISE an error. The transaction should roll back due to the error.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux