Use setproctitle_fast() to update the ps status, if available.

Thomas Munro <tmunro@postgresql.org>

Commit: 1bc180cd2acc55e31b61c4cc9ab4b07670a2566e
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2018-07-24T01:09:22Z
Releases: 12.0
Use setproctitle_fast() to update the ps status, if available.

FreeBSD has introduced a faster variant of setproctitle().  Use it,
where available.

Author: Thomas Munro
Discussion: https://postgr.es/m/CAEepm=1wKMTi81uodJ=1KbJAz5WedOg=cr8ewEXrUFeaxWEgww@mail.gmail.com

Files

PathChange+/−
configure modified +1 −1
configure.in modified +1 −1
src/backend/utils/misc/ps_status.c modified +9 −2
src/include/pg_config.h.in modified +3 −0

Discussion