| От | Peter Eisentraut |
|---|---|
| Тема | redundant error messages |
| Дата | |
| Msg-id | 3e937641-88a1-e697-612e-99bba4b8e5e4@enterprisedb.com обсуждение исходный текст |
| Ответы |
Re: redundant error messages
Re: redundant error messages |
| Список | pgsql-hackers |
A few client tools duplicate error messages already provided by libpq, such as pg_rewind: fatal: could not connect to server: could not connect to server: No such file or directory pg_basebackup: error: could not connect to server: could not connect to server: No such file or directory psql: error: could not connect to server: could not connect to server: No such file or directory The psql case is actually a regression introduced in PG12, but the other two appear to be ancient. Other client tools provide a different error message so in aggregate it looks like this: createdb: error: could not connect to database template1: could not connect to server: No such file or directory The attached patch removes the redundant message from the client tools. I suppose it's a bit dubious because there is no guarantee what the level of detail the message supplied by libpq has. But I think these few cases are not particularly hard to keep in sync.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера