Re: Improve const use in zlib-using code

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Improve const use in zlib-using code
Дата
Msg-id 7697cfc0-683a-0bbd-fc78-735646612428@eisentraut.org
обсуждение исходный текст
Ответ на Re: Improve const use in zlib-using code  ("Tristan Partin" <tristan@neon.tech>)
Ответы Re: Improve const use in zlib-using code  ("Tristan Partin" <tristan@neon.tech>)
Список pgsql-hackers
On 02.08.23 16:39, Tristan Partin wrote:
> I like the idea. Though the way you have it implemented at the moment 
> seems like a trap in that any time zlib.h is included someone also has 
> to remember to add this define. I would recommend adding the define to 
> the build systems instead.

Ok, moved to c.h.

> Since you put in the work to find the version of zlib that added this, 
> You might also want to add `required: '>= 1.2.5.2'` to the 
> `dependency('zlib')` call in the main meson.build.

Well, it's not a hard requirement, so I think this is not necessary.

> I am wondering if we 
> could remove the `z_streamp` check too. The version that it was added 
> isn't obvious.

Yeah, that appears to be very obsolete.  I have made an additional patch 
to remove that.

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: tender wang
Дата:
Сообщение: Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails
Следующее
От: Andy Fan
Дата:
Сообщение: Re: Extract numeric filed in JSONB more effectively