The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/16/plpgsql-control-structures.html
Description:
When using GET STACKED DIAGNOSTICS in PL/pgSQL accessing TABLE_NAME,
COLUMN_NAME, CONSTRAINT_NAME or SCHEMA_NAME throws an error.
The function "shared.test_raise_exception":
https://github.com/rin-nas/postgresql-patterns-library/issues/8#issuecomment-2147984520