Re: Refactoring SysCacheGetAttr to know when attr cannot be NULL
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Refactoring SysCacheGetAttr to know when attr cannot be NULL |
| Дата | |
| Msg-id | 1549010.1677701095@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Refactoring SysCacheGetAttr to know when attr cannot be NULL (Peter Eisentraut <peter.eisentraut@enterprisedb.com>) |
| Ответы |
Re: Refactoring SysCacheGetAttr to know when attr cannot be NULL
|
| Список | pgsql-hackers |
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> Yes please!
> I have occasionally wondered whether just passing the isnull argument as
> NULL would be sufficient, so we don't need a new function.
I thought about that too. I think I prefer Daniel's formulation
with the new function, but I'm not especially set on that.
An advantage of using a new function name is it'd be more obvious
what's wrong if you try to back-patch such code into a branch that
lacks the feature. (Or, of course, we could back-patch the feature.)
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера