- 14 Jan, 2017 2 commits
-
-
Peter Eisentraut authored
The different actions in pg_ctl had different defaults for -w and -W, mostly for historical reasons. Most users will want the -w behavior, so make that the default. Remove the -w option in most example and test code, so avoid confusion and reduce verbosity. pg_upgrade is not touched, so it can continue to work with older installations. Reviewed-by:
Beena Emerson <memissemerson@gmail.com> Reviewed-by:
Ryan Murphy <ryanfmurphy@gmail.com>
-
Peter Eisentraut authored
Various example and test code used -m fast explicitly, but since it's the default, this can be omitted now or should be replaced by a better example. pg_upgrade is not touched, so it can continue to operate with older installations.
-
- 12 Jan, 2017 1 commit
-
-
Peter Eisentraut authored
I don't know what the global standard might be, but at least adjacent code should use the same whitespace.
-
- 09 Sep, 2014 1 commit
-
-
Peter Eisentraut authored
bug #10528
-
- 04 Sep, 2013 1 commit
-
-
Bruce Momjian authored
Backpatch to 9.3. Per suggestion from Gavan Schneider
-
- 26 Nov, 2011 1 commit
-
-
Tom Lane authored
Sidar Lopez, per bug #6310, with some additional improvements by me. Back-patch to 9.0, where the issue was introduced.
-
- 23 Nov, 2010 1 commit
-
-
Peter Eisentraut authored
-
- 27 Aug, 2009 1 commit
-
-
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.
-
- 16 Jan, 2008 1 commit
-
-
Tom Lane authored
the PATH responsive to the installation prefix, which was the apparent intent of the previous edit, but not well executed.
-
- 30 May, 2007 2 commits
-
-
Bruce Momjian authored
Les Hill
-
Bruce Momjian authored
directory. Mark Cotner and David Fetter
-
- 01 Oct, 2004 1 commit
-
-
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.
-
- 09 Mar, 2004 1 commit
-
-
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
-
- 12 Nov, 2003 1 commit
-
-
Bruce Momjian authored
-
- 09 Dec, 2002 1 commit
-
-
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
-