summaryrefslogtreecommitdiff
path: root/contrib/start-scripts/osx/PostgreSQL
Commit message (Collapse)AuthorAgeFilesLines
* Remove contrib/start-scripts/osx/.Tom Lane2017-11-171-111/+0
| | | | | | | | | | Since those scripts haven't worked at all in macOS releases of 2014 and later, and aren't the recommended way to do it on any release since 2005, there seems little point carrying them into the future. It's very unlikely that anyone would be installing PG >= 11 on a macOS release where they couldn't use contrib/start-scripts/macos/. Discussion: https://postgr.es/m/31338.1510763554@sss.pgh.pa.us
* start-scripts: switch to $PGUSER before opening $PGLOG.Noah Misch2017-11-061-4/+4
| | | | | | | | | | | | | | | | | | By default, $PGUSER has permission to unlink $PGLOG. If $PGUSER replaces $PGLOG with a symbolic link, the server will corrupt the link-targeted file by appending log messages. Since these scripts open $PGLOG as root, the attack works regardless of target file ownership. "make install" does not install these scripts anywhere. Users having manually installed them in the past should repeat that process to acquire this fix. Most script users have $PGLOG writable to root only, located in $PGDATA. Just before updating one of these scripts, such users should rename $PGLOG to $PGLOG.old. The script will then recreate $PGLOG with proper ownership. Reviewed by Peter Eisentraut. Reported by Antoine Scemama. Security: CVE-2017-12172
* Fix typos in comments.Heikki Linnakangas2017-02-061-1/+1
| | | | | | | | | Backpatch to all supported versions, where applicable, to make backpatching of future fixes go more smoothly. Josh Soref Discussion: https://www.postgresql.org/message-id/CACZqfqCf+5qRztLPgmmosr-B0Ye4srWzzw_mo4c_8_B_mtjmJQ@mail.gmail.com
* pg_ctl: Change default to wait for all actionsPeter Eisentraut2017-01-141-2/+1
| | | | | | | | | | | | | 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>
* Updates to reflect that pg_ctl stop -m fast is the defaultPeter Eisentraut2017-01-131-2/+2
| | | | | | | | | 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.
* Make whitespace consistent inside some script filesPeter Eisentraut2017-01-121-3/+3
| | | | | I don't know what the global standard might be, but at least adjacent code should use the same whitespace.
* doc: Reflect renaming of Mac OS X to OS XPeter Eisentraut2014-09-091-1/+1
| | | | bug #10528
* Remove dead URL mention in OSX startup scriptBruce Momjian2013-09-041-5/+1
| | | | | | Backpatch to 9.3. Per suggestion from Gavan Schneider
* Fix overly-aggressive and inconsistent quoting in OS X start script.Tom Lane2011-11-261-6/+6
| | | | | Sidar Lopez, per bug #6310, with some additional improvements by me. Back-patch to 9.0, where the issue was introduced.
* Remove useless whitespace at end of linesPeter Eisentraut2010-11-231-2/+2
|
* Make it reasonably safe to use pg_ctl to start the postmaster from a boot-timeTom Lane2009-08-271-5/+5
| | | | | | | | | | | | | | | | | 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.
* Remove inappropriate cd commands, per David Wheeler. Also makeTom Lane2008-01-161-4/+1
| | | | | the PATH responsive to the installation prefix, which was the apparent intent of the previous edit, but not well executed.
* Add standard error redirection for OS/X & darwin startup script.Bruce Momjian2007-05-301-2/+2
| | | | Les Hill
* Update /contrib OS/X startup files, and move to a separate OS/XBruce Momjian2007-05-301-0/+119
directory. Mark Cotner and David Fetter