mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
This patch fixes the find_my_exec code for pgstat backends. Required for
TZ stuff (and possibly others) to work in the pgstat backends. Magnus Hagander
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.70 2004/05/18 03:36:30 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.71 2004/05/24 02:47:47 momjian Exp $
|
||||
* ----------
|
||||
*/
|
||||
#include "postgres.h"
|
||||
@@ -520,8 +520,16 @@ pgstat_forkexec(STATS_PROCESS_TYPE procType)
|
||||
static void
|
||||
pgstat_parseArgs(PGSTAT_FORK_ARGS)
|
||||
{
|
||||
Assert(argc == 12);
|
||||
argc = 0;
|
||||
Assert(argc == 14);
|
||||
|
||||
if (find_my_exec(argv[0], my_exec_path) < 0)
|
||||
elog(FATAL,
|
||||
gettext("%s: could not locate my own executable path"),
|
||||
argv[0]);
|
||||
|
||||
get_pkglib_path(my_exec_path, pkglib_path);
|
||||
|
||||
argc = 2;
|
||||
pgStatSock = atoi(argv[argc++]);
|
||||
pgStatPmPipe[0] = atoi(argv[argc++]);
|
||||
pgStatPmPipe[1] = atoi(argv[argc++]);
|
||||
|
Reference in New Issue
Block a user