Google News
logo
PostgreSQL - Interview Questions
How do we stop the Postgres Database Server?
To stop the Postgres Database server, we need to move to the location where pgsql script (ideally it’s a shell script) and the location of postgresql and stop the services respectively as below.
 
Alternatively, we can add them to the auto startup scripts using chkconfig such that whenever server gets restarted postgres server will be restarted and thus we can avoid manual intervention.
 
* /usr/local/etc/rc.d/010.pgsql.sh stop
* /usr/local/etc/rc.d/postgresql stop
Advertisement