Tom Lane wrote:
StopService()
{
       ConsoleMessage "Stopping PostgreSQL database services"
       /usr/local/pgsql/bin/pg_ctl stop -D /usr/local/pgsql/data
       x=`/bin/ps axc | /usr/bin/grep postgres`
       if /bin/test "$x"
       then
               set $x
               kill -9 $x
       fi
}

Gack. Whoever wrote this should be shot. Take out everything after the "pg_ctl stop" line. You might want to add "-m immediate" to the pg_ctl command as a less dangerous way of encouraging a fast shutdown...

BTW, I remember vaguely that the Cpanel 3 scripts (Cpanel is a webhosting control panel product) used to do something like this for every daemon... the horror...


--
dave


---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Reply via email to