Re: pg_upgrade segfaults when given an invalid PGSERVICE value
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: pg_upgrade segfaults when given an invalid PGSERVICE value |
| Дата | |
| Msg-id | 22554.1364252862@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: pg_upgrade segfaults when given an invalid PGSERVICE value (Bruce Momjian <bruce@momjian.us>) |
| Ответы |
Re: pg_upgrade segfaults when given an invalid PGSERVICE
value
|
| Список | pgsql-hackers |
Bruce Momjian <bruce@momjian.us> writes:
> We are taking this approach because PQconndefaults() doesn't have an API
> to return the error cause, while other API calls do. Returning true so
> we can later report the right error from a later API call just feels
> wrong.
Well, plan B would be to invent a replacement function that does have
the ability to return an error message, but that seems like a lot of
work for a problem that's so marginal that it wasn't noticed till now.
(It's not so much creating the function that worries me, it's fixing
clients to use it.)
Plan C would be to redefine bogus value of PGSERVICE as not an error,
period.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера