I don't see why we should do this at all. My earlier point about consistency is a nice-to-have, but I don't think it's an urgent matter that we should change all the files, and I don't see why we should for existing pg_stat_statements calls.
It would be up to reviewers to catch this for new (or modified) error handling and hopefully someone familiarizes themselves with https://www.postgresql.org/docs/current/error-message-reporting.html Others may have a different opinion. -- Sami
