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 4C21332A7D5 for ; Mon, 18 Oct 2004 22:55:15 +0100 (BST) 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 43096-04 for ; Mon, 18 Oct 2004 21:55:04 +0000 (GMT) Received: from web60005.mail.yahoo.com (web60005.mail.yahoo.com [216.109.116.228]) by svr1.postgresql.org (Postfix) with SMTP id B320A32A7B5 for ; Mon, 18 Oct 2004 22:55:04 +0100 (BST) Message-ID: <20041018215504.68925.qmail@web60005.mail.yahoo.com> Received: from [204.116.185.5] by web60005.mail.yahoo.com via HTTP; Mon, 18 Oct 2004 14:55:04 PDT Date: Mon, 18 Oct 2004 14:55:04 -0700 (PDT) From: David Beechum Subject: PGDATA problem To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/226 X-Sequence-Number: 15219 I just installed postgresql on my gentoo box. everything works fine when i use the default data directory '/var/lib/postgresql/data' but the problem is i do not want my data stored there. so i created a new directory owned by postgres '/home/postgresql/data' and ran $initdb -D /home/postgresql/data it successfully created the database. so $/etc/init.d/postgresql start *directory not found: /var/lib/postgresql/data/ *your should create PGDATA directory first so i figure i need to update my enviromental variable PGDATA $echo $PGDATA the variable had not been set so i set it globably, then $echo $PGDATA /home/postgresql/data there PGDATA is set so it should work, shouldnt it? so $/etc/init.d/postgresql start *directory not found: /var/lib/postgresql/data/ *your should create PGDATA directory first so i check the init.d script and verify it is using $PGDATA for the data path and it is. so why is it still trying to use '/var/lib/postgresql/data/' as the data path even after i have set the enviromental variable PGDATA to something different. HELP PLZ :) thanks ~Dave _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com