I've been wondering if it might be a good idea to have a third parameter for pg_input_error_message() which would default to false, but which if true would cause it to emit the detail and hint fields, if any, as well as the message field from the error_data.
Thoughts? cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com