]> granicus.if.org Git - postgresql/commitdiff
ISTM that IsUnderPostmaster should mean we are a child process of the
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Sep 2001 20:08:18 +0000 (20:08 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Sep 2001 20:08:18 +0000 (20:08 +0000)
postmaster ... it should not be set in the postmaster itself.

src/backend/postmaster/postmaster.c

index 40ff1a661b38ed28360bcf7f4bd7f04f0bb537cc..85197e957ae317c2e8e30dff36e02216eac0723a 100644 (file)
@@ -37,7 +37,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.243 2001/09/21 20:31:48 tgl Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.244 2001/09/30 20:08:18 tgl Exp $
  *
  * NOTES
  *
@@ -312,8 +312,6 @@ PostmasterMain(int argc, char *argv[])
        char            original_extraoptions[MAXPGPATH];
        char       *potential_DataDir = NULL;
 
-       IsUnderPostmaster = true;       /* so that backends know this */
-
        *original_extraoptions = '\0';
 
        progname = argv[0];
@@ -1935,6 +1933,8 @@ DoBackend(Port *port)
         * Let's clean up ourselves as the postmaster child
         */
 
+       IsUnderPostmaster = true;       /* we are a postmaster subprocess now */
+
        /* We don't want the postmaster's proc_exit() handlers */
        on_exit_reset();
 
@@ -2317,6 +2317,8 @@ SSDataBase(int xlop)
                beos_backend_startup();
 #endif
 
+               IsUnderPostmaster = true; /* we are a postmaster subprocess now */
+
                /* Lose the postmaster's on-exit routines and port connections */
                on_exit_reset();