Created
April 4, 2013 16:12
-
-
Save jkatz/5311748 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# only supply or default logfile path when none is given explicitly in | |
# postgresql.conf | |
@options = ($pg_ctl, 'start', '-D', $info{'pgdata'}); | |
$logsize = 0; | |
if ($info{'logfile'}) { | |
push @options, ('-l', $info{'logfile'}); | |
# remember current size of the log | |
$logsize = (stat $info{'logfile'})[7]; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment