Re: pgsql: Make cancel request keys longer

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pgsql: Make cancel request keys longer
Дата
Msg-id 61be9e31-7b7d-49d5-bc11-721800d89d64@eisentraut.org
обсуждение исходный текст
Ответ на pgsql: Make cancel request keys longer  (Heikki Linnakangas <heikki.linnakangas@iki.fi>)
Ответы Re: pgsql: Make cancel request keys longer
Список pgsql-committers
On 02.04.25 15:43, Heikki Linnakangas wrote:
> Make cancel request keys longer

This patch changed the signature of ProcSignal()

-ProcSignalInit(bool cancel_key_valid, int32 cancel_key)
+ProcSignalInit(char *cancel_key, int cancel_key_len)

but did not update the caller in auxprocess.c:

ProcSignalInit(false, 0);

This gives a warning with clang.

While I was looking at this, I suggest to make the first argument void 
*.  This is consistent for passing binary data.

Also, I wonder why MyCancelKeyLength is of type uint8 rather than 
something more mundane like int.  There doesn't seem to be any API 
reason for this type.

See attached patch for possible changes.
Вложения

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