| От | Tom Lane |
|---|---|
| Тема | Re: Crash with empty dictionary |
| Дата | |
| Msg-id | 7201.1187792307@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Crash with empty dictionary ("Hamid Quddus Akhtar" <hamid.akhtar@enterprisedb.com>) |
| Ответы |
Re: Crash with empty dictionary
|
| Список | pgsql-hackers |
"Hamid Quddus Akhtar" <hamid.akhtar@enterprisedb.com> writes:
>> Offhand I'd say that an empty file is a legitimate corner case,
>> so we should just take it silently.
> Shouldn't we be warning about an empty file rather than just swallowing
> up the error?
You are jumping to a conclusion, namely that it is an error. If it's
a legitimate corner case, throwing a warning every time the file is
read would be incredibly annoying.
If it's not a legitimate case, then we should throw a real error.
A warning just strikes me as the worst of both worlds.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера