Skip to content

Commit b207081

Browse files
committed
Make sure to clean out old activity string when recycling a backend entry.
1 parent 70e6003 commit b207081

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/postmaster/pgstat.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* Copyright (c) 2001, PostgreSQL Global Development Group
1818
*
19-
* $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.10 2001/10/05 17:28:12 tgl Exp $
19+
* $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.11 2001/10/16 22:35:27 tgl Exp $
2020
* ----------
2121
*/
2222
#include "postgres.h"
@@ -1754,6 +1754,7 @@ pgstat_add_backend(PgStat_MsgHdr *msg)
17541754
beentry->databaseid = msg->m_databaseid;
17551755
beentry->procpid = msg->m_procpid;
17561756
beentry->userid = msg->m_userid;
1757+
MemSet(beentry->activity, 0, PGSTAT_ACTIVITY_SIZE);
17571758

17581759
/*
17591760
* Lookup or create the database entry for this backends DB.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy