Re: Dead code in ps_status.c

Поиск
Список
Период
Сортировка
От Michael Banck
Тема Re: Dead code in ps_status.c
Дата
Msg-id 68adbcd3.500a0220.8d4c9.9460@mx.google.com
обсуждение исходный текст
Ответ на Dead code in ps_status.c  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: Dead code in ps_status.c
Список pgsql-hackers
Hi,

On Thu, Feb 16, 2023 at 04:52:33PM +1300, Thomas Munro wrote:
> Therefore I think it is safe to drop the PS_USE_PS_STRING and
> PS_USE_CHANGE_ARGV code branches, remove a bunch of outdated comments
> and macro tests, and prune the defunct configure/meson probe.

I noticed Postgres no longer updates the process title on the Hurd, this
is because this was removed along other legacy platforms in this commit 
as it was using PS_USE_PS_STRING.

Just doing the same as what Linux does (PS_USE_CLOBBER_ARGV) works, so
I've added the __GNU__ definition to it. Process handling on Linux and
the Hurd are different enough that just changing it to __GLIBC__ would
not be advisable IMV.

Patch attached.


Michael

Вложения

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