X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 31902D1B502 for ; Wed, 12 Nov 2003 21:11:46 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 77323-01 for ; Wed, 12 Nov 2003 17:11:16 -0400 (AST) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id DBB74D1B4EB for ; Wed, 12 Nov 2003 17:11:13 -0400 (AST) Received: (qmail 2103 invoked by uid 500); 12 Nov 2003 21:09:45 -0000 Date: Wed, 12 Nov 2003 15:09:45 -0600 From: Bruno Wolff III To: ow Cc: pgsql-admin@postgresql.org Subject: Re: Taking database offline Message-ID: <20031112210945.GA2077@wolff.to> Mail-Followup-To: ow , pgsql-admin@postgresql.org References: <20031112200723.9892.qmail@web21407.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031112200723.9892.qmail@web21407.mail.yahoo.com> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/219 X-Sequence-Number: 11206 On Wed, Nov 12, 2003 at 12:07:23 -0800, ow wrote: > Hi, > > Is there a way to take the database offline to keep users out? > Is there a way to take the database offline but still allowing pg_restore to > run against it? You could shut the database down, change pg_hba.conf to only let in the postgres user, bring the system back up. Once you finish your restore you can repeat the procedure, this time change pg_hba.conf to let everyone back in.