As I tried to explain, the model I gave is a generalized one.
The modelling in Convert Error Structure to Record (as well as the structure of the Error Record itself) is entirely up to you, based on the data you wish to gather on the error, and depending on what the Error structure's Message and Cause fields contain (which is totally under the control of postgres in your case, and in other cases under the control of other 3rd-party components, over which we have no control over, either).
Here's (again) a (generalized) demo:
Concatenating the error structure content (as Description), together with a sequence number as Id, and a Timestamp. There's nothing here which is postgres-specific, but it is possible that postgres errors have a specific format (in Message/Cause), and if you can figure it out you can analyze it using the various Text-related templates (such as Match, Extract, Get Position, etc.) and save the error data in your specific format.
For best results, use the Firefox browser..