17th September 2020: PostgreSQL 13 RC 1 Released!

Feature Description

SQLERRM/SQLSTATE for pl/pgsql

allows simple access to the SQL error state and the associated error text if an exception happened