Use MyBackendType in more places to check what process this is

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 393b5599e5177e456cdce500039813629d370b38
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-03-04T08:25:12Z
Releases: 17.0
Use MyBackendType in more places to check what process this is

Remove IsBackgroundWorker, IsAutoVacuumLauncherProcess(),
IsAutoVacuumWorkerProcess(), and IsLogicalSlotSyncWorker() in favor of
new Am*Process() macros that use MyBackendType. For consistency with
the existing Am*Process() macros.

Reviewed-by: Andres Freund
Discussion: https://www.postgresql.org/message-id/f3ecd4cb-85ee-4e54-8278-5fabfb3a4ed0@iki.fi

Files

Discussion