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 5FE02D1B50E for ; Thu, 13 Nov 2003 15:33:00 +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 51874-07 for ; Thu, 13 Nov 2003 11:32:32 -0400 (AST) Received: from candle.pha.pa.us (unknown [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 2CA14D1B4F1 for ; Thu, 13 Nov 2003 11:32:25 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id hADFWO217360; Thu, 13 Nov 2003 10:32:24 -0500 (EST) From: Bruce Momjian Message-Id: <200311131532.hADFWO217360@candle.pha.pa.us> Subject: Re: Taking database offline In-Reply-To: <20031113152213.7870.qmail@web21404.mail.yahoo.com> To: ow Date: Thu, 13 Nov 2003 10:32:24 -0500 (EST) Cc: "scott.marlowe" , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/245 X-Sequence-Number: 11232 ow wrote: > > --- Bruce Momjian wrote: > > You can restrict pg_hba.conf to not allow connections just to one > > database if you want. > > > > True, but that still would not prevent users who are already connected from > accessing the db, would it? No, I guess that is the problem. You can use restart, which will kick everyone out, or you can use reload, but that doesn't kick people out of the single database you want. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073