mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Sync process names between ps and pg_stat_activity
Remove gratuitous differences in the process names shown in pg_stat_activity.backend_type and the ps output. Reviewed-by: Takayuki Tsunakawa <tsunakawa.takay@jp.fujitsu.com>
This commit is contained in:
@ -321,19 +321,19 @@ AuxiliaryProcessMain(int argc, char *argv[])
|
||||
switch (MyAuxProcType)
|
||||
{
|
||||
case StartupProcess:
|
||||
statmsg = "startup process";
|
||||
statmsg = pgstat_get_backend_desc(B_STARTUP);
|
||||
break;
|
||||
case BgWriterProcess:
|
||||
statmsg = "writer process";
|
||||
statmsg = pgstat_get_backend_desc(B_BG_WRITER);
|
||||
break;
|
||||
case CheckpointerProcess:
|
||||
statmsg = "checkpointer process";
|
||||
statmsg = pgstat_get_backend_desc(B_CHECKPOINTER);
|
||||
break;
|
||||
case WalWriterProcess:
|
||||
statmsg = "wal writer process";
|
||||
statmsg = pgstat_get_backend_desc(B_WAL_WRITER);
|
||||
break;
|
||||
case WalReceiverProcess:
|
||||
statmsg = "wal receiver process";
|
||||
statmsg = pgstat_get_backend_desc(B_WAL_RECEIVER);
|
||||
break;
|
||||
default:
|
||||
statmsg = "??? process";
|
||||
|
Reference in New Issue
Block a user