improve more permissions-related error messages

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: improve more permissions-related error messages
Date: 2023-05-12 20:37:21
Message-ID: 20230512203721.GA2644063@nathanxps13.home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

This is intended as a follow-up to de4d456 [0]. I noticed that c3afe8c
introduced another "must have privileges" error message that I think should
be adjusted to use the new style introduced in de4d456. І've attached a
small patch for this.

While looking around for other such error messages, I found a few dozen
"must be superuser" errors that might be improved with the new style. If
folks feel this is worthwhile, I'll put together a patch.

[0] https://postgr.es/m/20230126002251.GA1506128%40nathanxps13

--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Attachment Content-Type Size
improve_errmsg.patch text/x-diff 1.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2023-05-12 20:43:08 Re: improve more permissions-related error messages
Previous Message Stephen Frost 2023-05-12 20:36:51 Re: Adding SHOW CREATE TABLE