pgsql: Revert the behavior of inet/cidr functions to not unpack the arg
В списке pgsql-committers по дате отправления:
| От | Heikki Linnakangas |
|---|---|
| Тема | pgsql: Revert the behavior of inet/cidr functions to not unpack the arg |
| Дата | |
| Msg-id | E1Ra1GF-0004dt-0D@gemulon.postgresql.org обсуждение исходный текст |
| Ответы |
Re: pgsql: Revert the behavior of inet/cidr functions to not unpack the arg
|
| Список | pgsql-committers |
Revert the behavior of inet/cidr functions to not unpack the arguments. I forgot to change the functions to use the PG_GETARG_INET_PP() macro, when I changed DatumGetInetP() to unpack the datum, like Datum*P macros usually do. Also, I screwed up the definition of the PG_GETARG_INET_PP() macro, and didn't notice because it wasn't used. This fixes the memory leak when sorting inet values, as reported by Jochen Erwied and debugged by Andres Freund. Backpatch to 8.3, like the previous patch that broke it. Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/6cf639dfbddbc44d027730ad1504886312bc905a Modified Files -------------- src/backend/utils/adt/network.c | 98 +++++++++++++++++++------------------- src/include/utils/inet.h | 2 +- 2 files changed, 50 insertions(+), 50 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера