Re: Fix wrong error message from pg_get_tablespace_ddl()
В списке pgsql-hackers по дате отправления:
| От | Jim Jones |
|---|---|
| Тема | Re: Fix wrong error message from pg_get_tablespace_ddl() |
| Дата | |
| Msg-id | edcd87ec-e91d-44f8-a8a3-d19c786b2712@uni-muenster.de обсуждение |
| Ответ на | Re: Fix wrong error message from pg_get_tablespace_ddl() (Andrew Dunstan <andrew@dunslane.net>) |
| Список | pgsql-hackers |
On 08/05/2026 14:07, Andrew Dunstan wrote: > I'm not 100% convinced these are in fact wrong. The user asks for the > DDL for a named role or tablespace and we tell them that they don't have > the privilege to get the information for that object. If we tell them > that the problem is that they don't have privilege on the underlying > catalog table, they might think "Well, I didn't ask for that". I honestly don't have a strong opinion either way. It depends on what we expect from the error message. If its purpose is simply to tell the user "you can't access this object," the current message is totally fine. If, however, the goal is to show the error's root cause, it could be a bit misleading. Best, Jim
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера