| От | Teodor Sigaev |
|---|---|
| Тема | Re: Warning on contrib/tsearch2 |
| Дата | |
| Msg-id | 460BE546.70304@sigaev.ru обсуждение исходный текст |
| Ответ на | Re: Warning on contrib/tsearch2 (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
> code: random backend code should not, not, not be using fopen() > directly. If you lose control to an elog, which is certainly possible > seeing that this loop calls into the utils/mb subsystem, you'll leak > the file descriptor. Use AllocateFile/FreeFile instead of fopen/fclose. Will soon in tsearch_core patch > > I find the direct use of malloc/realloc/strdup to be poor style as well > --- backend code that is not using palloc needs to have *very* good > reason to do so, and I see none here. Already in tsearch_core patch. -- Teodor Sigaev E-mail: teodor@sigaev.ru WWW: http://www.sigaev.ru/
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера