Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id A06D82E33EF for ; Sat, 29 Dec 2007 22:40:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 20493-01 for ; Sat, 29 Dec 2007 22:40:00 -0400 (AST) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by postgresql.org (Postfix) with ESMTP id 1589C2E33F1 for ; Sat, 29 Dec 2007 22:40:05 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id m38so6841726waf.5 for ; Sat, 29 Dec 2007 18:40:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=j4tZGTI+g+sitcWDKbshj7g8HdBEFS/8XJ7WeaSBUnc=; b=MQVmoTzuCf34HcEdAQznbGNDq/YA3pqlhmy8o5fV6rnpPrhslZvUjS8Sj8Am4Qh5QmqcADAgQH2EeqDOEm0a53Hdu3IKb5aAyya+xXR3odUmyG2dJrKlKMgOTyFnaFd7G3k4N6Xbx8BL8Kf/0Rewdw3lYr5H+GHExeCI4t599pQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KcFGGxCjCrXpQqwz5s+01yZ5+SAc751pctLf9rYaoTmuwtIrfOkhFPTOWRNw5LSMuoh6tVujFymIe0wjL4RDG8HD0WjSzVnARWniemwmkuC0lQaljY4nn5meqpLPJNhBLM01v7UuBDBNl0mPyArBDAuYKdqCXUbOruMnacRQ36U= Received: by 10.143.6.1 with SMTP id j1mr3416513wfi.45.1198982404570; Sat, 29 Dec 2007 18:40:04 -0800 (PST) Received: by 10.142.153.3 with HTTP; Sat, 29 Dec 2007 18:40:04 -0800 (PST) Message-ID: <9ef66fac0712291840k5174fd7bp3558c0944eecd64a@mail.gmail.com> Date: Sat, 29 Dec 2007 21:40:04 -0500 From: "Albretch Mueller" To: pgsql-admin@postgresql.org Subject: separating PG binaries into a ro mounted partition MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.385 tagged_above=0 required=5 tests=AWL=2.632, BAYES_00=-2.599, FROM_LOCAL_NOVOWEL=3.196, SUBJECT_FUZZY_TION=0.156 X-Spam-Level: *** X-Archive-Number: 200712/242 X-Sequence-Number: 27759 Hi, ~ I would like to separate all PG binaries from the created data for tables, indexes (which could be written and updated to) and also from the log files created by PG. Idealy I would like to be able to reset those directories at run-time through environment variables and even run PG from a CD-ROM ~ So I will need to include those a-la {$DATA_DIR} in conf files and previously set them in an initial script ~ I know I will have to install PG from source, but I guess there is a lot more I don't know about the installation procedures found in the /postgresql-8.2.5/INSTALL notes, my ./configure stat should be like this: ~ PG_INSTALL_DIR=<> RM_DIR=<> ./configure --prefix=$PG_INSTALL_DIR --without-readline --without-docdir --mandir=$RM_DIR rm $RM_DIR ~ I am planning to use the read-only mount feature and the append-only attributes of the ext3 file system under Linux ~ Which other conf files will I have to tinker with? ~ Are there any best practices using these ideas for the installation of PG? ~ Thanks lbrtchx