Re: BackendKeyData is mandatory?

Поиск
Список
Период
Сортировка
От Jelte Fennema-Nio
Тема Re: BackendKeyData is mandatory?
Дата
Msg-id CAGECzQT=xNV-V+vFC7YQwYQMj0wGN61b3p=J1_rL6M0vbjTtrA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BackendKeyData is mandatory?  (Heikki Linnakangas <hlinnaka@iki.fi>)
Ответы Re: BackendKeyData is mandatory?
Список pgsql-hackers
On Thu, 14 Aug 2025 at 15:10, Heikki Linnakangas <hlinnaka@iki.fi> wrote:
> Here's a new set of patches, to disconnect on OOM instead of hanging or
> silently discarding messages:

Code looks good. Som small nitpicks though.

This change seems unnecessary, i.e. free(NULL) is a no-op

-        free(svname);
+        if (svname)
+            free(svname);


Small wording suggestion, maybe change this:

The caller has already saved the error message in conn->errorMessage.

to

The caller should have already saved the error message in conn->errorMessage.

or even

The caller should have already saved the error message using
libpq_append_conn_error.



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