Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 68277B5D91F for ; Sat, 9 Jul 2011 08:59:00 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 57337-01 for ; Sat, 9 Jul 2011 11:58:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from zql.com (zql.com [206.222.31.58]) by mail.postgresql.org (Postfix) with ESMTP id B4AB8B5D803 for ; Sat, 9 Jul 2011 08:58:53 -0300 (ADT) Received: from localhost ([127.0.0.1]) by zql.com with smtp (Exim 4.68) (envelope-from ) id 1QfWBQ-00078S-Pl; Sat, 09 Jul 2011 07:58:52 -0400 From: "Greg Sabino Mullane" To: pgsql-admin@postgresql.org Cc: pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary=001485e76f4600a3c704a7756ca4 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Mailing-List: pgsql-admin List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Paul Schluck CC: pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary=001485e76f4600a3c704a7756ca4 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Mailing-List: pgsql-admin List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Paul Schluck Subject: Re: How to start a database in ReadOnly mode? X-PGP-Key: 2529 DF6A B8F7 9407 E944 45B4 BC9B 9067 1496 4AC8 X-Request-PGP: http://www.biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 In-Reply-To: Date: Sat, 9 Jul 2011 11:58:52 -0000 X-Mailer: JoyMail 2.4.0 Message-ID: <5fe0d78bda51d7176940fb8e78739b54@biglumber.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201107/55 X-Sequence-Number: 37834 -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 > Is it possible to start a postgres cluster or 1 postgres database in > readonly mode? And - if yes - how can this be done? Clusterwide: edit postgresql.conf and set default_transaction_read_only = on; No restart needed, just a reload (HUP) Database-wide: ALTER DATABASE foobar SET default_transaction_read_only = true; - -- Greg Sabino Mullane greg@turnstep.com End Point Corporation http://www.endpoint.com/ PGP Key: 0x14964AC8 201107090757 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 -----BEGIN PGP SIGNATURE----- iEYEAREDAAYFAk4YQkIACgkQvJuQZxSWSsidzgCg1dpGvT6IY35NmMl1psiBlKuj B2sAoJhdD3vlg0F/GwjhO1SCMfK/hhWS =dRd9 -----END PGP SIGNATURE-----