Re: backup server - how to disconnect
От | Emmanuel BERTHOULE |
---|---|
Тема | Re: backup server - how to disconnect |
Дата | |
Msg-id | F8B4545E-099D-4C5F-970E-71F7E7724B6E@yahoo.fr обсуждение исходный текст |
Ответ на | backup server - how to disconnect ("Mark Steben" <msteben@autorevenue.com>) |
Список | pgsql-admin |
Hi,
you can use
pg_ctl stop -m fast
pg_ctl start
who kill client and abort current transaction
and if you have multiple database you can use the -D option for specify database directory
-manu
Le 15 oct. 08 à 16:11, Mark Steben a écrit :
We have a server that backups and then recreates our production database on a nightly basisIn order to drop and recreate the database we would stop and restart the server - this wouldEffectively kick off any straggling users so we could get our refresh done. No problem.Now we have more than one database and stopping and restarting the server to clean upThe backup database would also kill any process going on in the new database.Is there a command in postgres to disconnect all users short of restartingThe server? I looked at pg_ctl kill TERM but there I would need toSpecify specific PIDs. Not something I want to do manually at 1 am every morning.We are at postgres 8.2.5. Thanks for your helpMark Steben│Database Administrator│ @utoRevenue™
95 Ashley Ave. West Springfield, MA., 01089
413-243-4800 x1512 (Phone) │ 413-732-1824 (Fax)A Division of Dominion Enterprises
В списке pgsql-admin по дате отправления: