From: Mark Steben <msteben@autorevenue.com>
To: pgsql-admin@postgresql.org
Subject: backup server - how to disconnect
Date: Wed, 15 Oct 2008 10:11:58 -0400
Message-ID: <85E425230440405C821801ED937EDC49@dei26g028534> (raw)
We have a server that backups and then recreates our production database on
a nightly basis
In order to drop and recreate the database we would stop and restart the
server - this would
Effectively 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 up
The 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 restarting
The server? I looked at pg_ctl kill TERM but there I would need to
Specify specific PIDs. Not something I want to do manually at 1 am every
morning.
We are at postgres 8.2.5. Thanks for your help
<mailto:autoenthusiasts@autorevenue.com?subject=Feedback> Committed to
Creating @utoEnthusiasts. Please provide us with your feedback.
_____
Mark Steben│Database Administrator│ <http://www.autorevenue.com/;
@utoRevenueT
95 Ashley Ave. West Springfield, MA., 01089
413-243-4800 x1512 (Phone) │ 413-732-1824 (Fax)
A Division of Dominion Enterprises
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: msteben@autorevenue.com
Subject: Re: backup server - how to disconnect
In-Reply-To: <85E425230440405C821801ED937EDC49@dei26g028534>
References: <85E425230440405C821801ED937EDC49@dei26g028534>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox