mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
sysv_shmem.c patch is to correct a bug that prevents the postmaster
recovering from an unexpected backend termination. The remaining patches are to allow whitespace in db/install directory names. Claudio Natoli
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
*
|
||||
* Copyright (c) 2001-2003, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.67 2004/04/19 17:42:58 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.68 2004/05/06 19:23:25 momjian Exp $
|
||||
* ----------
|
||||
*/
|
||||
#include "postgres.h"
|
||||
@@ -485,11 +485,10 @@ pgstat_forkexec(STATS_PROCESS_TYPE procType)
|
||||
snprintf(pgstatBuf[bufc++],MAXPGPATH,"%d",MaxBackends);
|
||||
|
||||
/* + the pstat file names, and postgres pathname */
|
||||
/* FIXME: [fork/exec] whitespaces in directories? */
|
||||
snprintf(pgstatBuf[bufc++],MAXPGPATH,"%s",pgStat_tmpfname);
|
||||
snprintf(pgstatBuf[bufc++],MAXPGPATH,"%s",pgStat_fname);
|
||||
snprintf(pgstatBuf[bufc++],MAXPGPATH,"%s",pg_pathname);
|
||||
snprintf(pgstatBuf[bufc++],MAXPGPATH,"%s",DataDir);
|
||||
snprintf(pgstatBuf[bufc++],MAXPGPATH,"\"%s\"",pgStat_tmpfname);
|
||||
snprintf(pgstatBuf[bufc++],MAXPGPATH,"\"%s\"",pgStat_fname);
|
||||
snprintf(pgstatBuf[bufc++],MAXPGPATH,"\"%s\"",pg_pathname);
|
||||
snprintf(pgstatBuf[bufc++],MAXPGPATH,"\"%s\"",DataDir);
|
||||
|
||||
/* Add to the arg list */
|
||||
Assert(bufc <= lengthof(pgstatBuf));
|
||||
|
||||
Reference in New Issue
Block a user