I am new to postgreSQL, just an FYI.
What I want to do: Log my stored procedure errors to a table.
What I want: SP name and parameters at the least, errors that terminate the SP or cause it to malfunction.
What I do not want: Syntax errors, and having to go to a 3rd party(doing logic in code, or output CSV to a file).
Right now I am running SQL server and I have a way to catch errors but it first goes to my code, then to a table and the error handling is not great. I am converting to postgres and want to be able to send the error right to the table without having to go to an 3rd party, and also send the parameters if possible. Does anyone have any info on this or know if its even possible?