X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 796E8533D5 for ; Sat, 26 Mar 2005 18:49:35 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 10353-10 for ; Sat, 26 Mar 2005 18:49:27 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 07C385390E for ; Sat, 26 Mar 2005 18:49:26 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j2QInL8U014174; Sat, 26 Mar 2005 13:49:21 -0500 (EST) To: Dragan Matic Cc: pgsql-admin@postgresql.org Subject: Re: read-only database on CD-ROM? In-reply-to: <42454E96.8070806@panforma.co.yu> References: <42454E96.8070806@panforma.co.yu> Comments: In-reply-to Dragan Matic message dated "Sat, 26 Mar 2005 12:59:18 +0100" Date: Sat, 26 Mar 2005 13:49:20 -0500 Message-ID: <14173.1111862960@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/427 X-Sequence-Number: 16925 Dragan Matic writes: > Is it possible to set up a read-only database on external data carrier > such as CD-ROM or DVD? It's not really supported. I think you could make it work if you did VACUUM FREEZE in the database, and then CHECKPOINT, just before burning it on CD. You can *not* put a whole $PGDATA directory on CD, as the xlog and clog have to be writable; but you could put one database subdirectory there. (It would be a lot easier to use 8.0 and make the moved-out tree a tablespace, probably.) A big caveat is that I'm not sure the CD would work if attached to a different $PGDATA tree, as for instance after a reinstallation. It could definitely not be counted on to work across PG version upgrades. So all in all the answer is probably "not worth the trouble". regards, tom lane