Skip to content
Snippets Groups Projects
  1. Nov 26, 2011
  2. Nov 23, 2010
  3. Sep 20, 2010
  4. Feb 23, 2010
  5. Jan 11, 2010
  6. Aug 27, 2009
    • Tom Lane's avatar
      Make it reasonably safe to use pg_ctl to start the postmaster from a boot-time · 8f5500e6
      Tom Lane authored
      script.
      
      To do this, have pg_ctl pass down its parent shell's PID in an environment
      variable PG_GRANDPARENT_PID, and teach CreateLockFile() to disregard that PID
      as a false match if it finds it in postmaster.pid.  This allows us to cope
      with one level of postgres-owned shell process even with pg_ctl in the way,
      so it's just as safe as starting the postmaster directly.  You still have to
      be careful about how you write the initscript though.
      
      Adjust the comments in contrib/start-scripts/ to not deprecate use of
      pg_ctl.  Also, fix the ROTATELOGS option in the OSX script, which was
      indulging in exactly the sort of unsafe coding that renders this fix
      pointless :-(.  A pipe inside the "sudo" will probably result in more
      than one postgres-owned process hanging around.
      8f5500e6
  7. Jan 16, 2008
  8. May 30, 2007
  9. Jul 13, 2006
  10. Oct 01, 2004
    • Tom Lane's avatar
      Adjust postmaster to recognize that a lockfile containing its parent's PID · c8196c87
      Tom Lane authored
      must be stale.  Tweak example startup scripts to not use pg_ctl but launch
      the postmaster directly, thereby ensuring that only the postmaster's direct
      parent shell will be a postgres-owned process.  In combination these should
      fix the longstanding problem of the postmaster sometimes refusing to start
      during reboot because it thinks the old lockfile is not stale.
      c8196c87
  11. Mar 09, 2004
    • Bruce Momjian's avatar
      I wanted to submit some changes to the bundled postgres startup · af96aa9a
      Bruce Momjian authored
      script for Mac OS X. I added calls to utilize the bundled apache
      rotatelogs script in the DB startup for log rotation. Also modified
      startup parameters file to allow using the "SystemStarter" utility to
      start/stop/restart postgres with a rotating log file.
      
      The script credits David Wheeler, 2002. I wrote him a message about
      the changes an he suggested I post them here. I explain some of the
      changes below.
      
      Not sure how to submit the changes. I have 3 files, "PostgreSQL"
      script, "StartupParameters.plist" file, "pg_startupscript.diff" file.
      The diff file was run against the original "PostgreSQL" script file.
      I'll try attaching them to this message. If they get filtered I can
      resend if needed.
      
      Thanks.
      
      Ray A.
      
      
      ------------------------------------
      
      1) Changed the "Provides" parameter in StartupParameters.plist to
      "PostgreSQL" from "postgres database" simply for ease of typing. It
      seems that the SystemStarter utility uses the "Provides" value if you
      want to control the script. This way I did not have to enclose it in
      quotes on commandline. The modified StartupParameters.plist is now an
      XML document also.
      
      
      2) For the startup script I added 2 user modifiable variables:
      
      # do you want to rotate the log files, 1=true 0=false
      ROTATELOGS=1
      
      # logfile rotate in seconds
      ROTATESEC="604800"
      
      I also added a non modifiable variable:
      
      # The apache log rotation utility
      LOGUTIL="/usr/sbin/rotatelogs"
      
      I modified the StartService and RestartService functions to execute
      the new commands if the user wants log rotation.
      
      Ray Aspeitia
      af96aa9a
  12. Nov 29, 2003
    • PostgreSQL Daemon's avatar
      · 969685ad
      PostgreSQL Daemon authored
      $Header: -> $PostgreSQL Changes ...
      969685ad
  13. Nov 12, 2003
  14. Jul 26, 2003
  15. Jun 12, 2003
  16. Dec 09, 2002
    • Bruce Momjian's avatar
      I've simplified the Darwin/Mac OS X startup script I submitted earlier · b842726f
      Bruce Momjian authored
      in the year. This version has only the two files required by the Darwin
      startup bundle design. Plus the sh script now uses Darwin-standard
      functions to start up PostgreSQL, and it checks for the presence of a
      variable in /etc/hostconfig, as do other Darwin startup scripts.
      
      I suggest that a new directory be created,
      contrib/start-scripts/darwin, and that these two files be put into it.
      Folks who want to use the script can read the comments inside it to
      figure out how to use it.
      
      David Wheeler
      b842726f
  17. Jul 30, 2001
  18. Apr 19, 2001
  19. Feb 10, 2001
  20. Feb 08, 2001
Loading