Can a Postgres Commit Exist in Procedure that has an Exception Block?
问题 I am having a difficult time understanding transactions in Postgres. I have a procedure that may encounter an exception. There are parts of the procedure where I might want to commit my work so-far so that it won't be rolled back if an exceptions ensues. I want to have an exception handling block at the end of the procedure where I catch the exception and insert the information from the exception into a logging table. I have boiled the problem down to a simple procedure, below, which fails on