diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-01-28 21:02:40 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-01-28 21:02:40 +0000 |
commit | 2f0d43b251f5bfc257d45835965861202fcd263b (patch) | |
tree | 257546d7fbd03c9ae8eae54cb6eb5fb2995653d9 /src/backend/postmaster/pgstat.c | |
parent | b3ead7c045382b5942b345239499bab0adcaef78 (diff) | |
download | postgresql-2f0d43b251f5bfc257d45835965861202fcd263b.tar.gz postgresql-2f0d43b251f5bfc257d45835965861202fcd263b.zip |
Review uses of IsUnderPostmaster, change some tests to look at
whereToSendOutput instead because they are really inquiring about
the correct client communication protocol. Update some comments.
This is pointing towards supporting regular FE/BE client protocol
in a standalone backend, per discussion a month or so back.
Diffstat (limited to 'src/backend/postmaster/pgstat.c')
-rw-r--r-- | src/backend/postmaster/pgstat.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index b684f01c119..606240c86eb 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -13,7 +13,7 @@ * * Copyright (c) 2001-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.56 2004/01/26 22:59:53 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.57 2004/01/28 21:02:40 tgl Exp $ * ---------- */ #include "postgres.h" @@ -1339,6 +1339,12 @@ pgstat_mainInit(void) { IsUnderPostmaster = true; /* we are a postmaster subprocess now */ +#ifdef EXEC_BACKEND + /* In EXEC case we will not have inherited these settings */ + IsPostmasterEnvironment = true; + whereToSendOutput = None; +#endif + MyProcPid = getpid(); /* reset MyProcPid */ /* Lose the postmaster's on-exit routines */ |