mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
This patch fixes a probably harmless write of uninitialized memory in
the statistics collector and makes a number of corrections to the documentation for SET, SHOW, and COPY. Neil Conway
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* Copyright (c) 2001, PostgreSQL Global Development Group
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.22 2002/07/20 05:16:58 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.23 2002/08/04 05:09:36 momjian Exp $
|
||||
* ----------
|
||||
*/
|
||||
#include "postgres.h"
|
||||
@@ -382,10 +382,9 @@ pgstat_beterm(int pid)
|
||||
if (pgStatSock < 0)
|
||||
return;
|
||||
|
||||
MemSet(&(msg.m_hdr), 0, sizeof(msg.m_hdr));
|
||||
msg.m_hdr.m_type = PGSTAT_MTYPE_BETERM;
|
||||
msg.m_hdr.m_backendid = 0;
|
||||
msg.m_hdr.m_procpid = pid;
|
||||
msg.m_hdr.m_databaseid = 0;
|
||||
|
||||
pgstat_send(&msg, sizeof(msg));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user