I'm just getting into writting stored procs with PL/pgSQL, and I'm having
a hard time finding a way to check the status of my commands. For
instance, I see that after an insert, I can get the RESULT_OID - but I'm
not sure this is a good way to check if the insert happened correctly and
didn't violate any constraints. If it is, how do I check that the oid
returned is valid?