1
0
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:
Bruce Momjian
2002-08-04 05:09:36 +00:00
parent 7312c19ab5
commit 6b64704e4f
4 changed files with 34 additions and 28 deletions

View File

@@ -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));
}