Skip to content
Advertisement

Updates/inserts not working in postgres trigger function

I have following function and trigger-

So, whenever I am inserting any record in TBL, I expect inserts/updates in the TBL_HISTORY but this does not work in trigger function. But if I execute this ‘WITH code’ separately it works. What could be the issue? please help.

Thanks

Advertisement

Answer

Below modification worked!

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement