Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 856619FB6DF; Wed, 13 Jun 2007 10:46:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 07494-01; Wed, 13 Jun 2007 10:45:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 0EB629FBC42; Wed, 13 Jun 2007 10:45:55 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l5DDjqW3009234; Wed, 13 Jun 2007 09:45:52 -0400 (EDT) To: Joost Kraaijeveld cc: pgsql-general@postgresql.org, pgsql-admin@postgresql.org Subject: Re: [GENERAL] psql : Error: Cannot stat /pgdata/8.2/main In-reply-to: <1181713452.3856.12.camel@panoramix> References: <1181713452.3856.12.camel@panoramix> Comments: In-reply-to Joost Kraaijeveld message dated "Wed, 13 Jun 2007 07:44:12 +0200" Date: Wed, 13 Jun 2007 09:45:52 -0400 Message-ID: <9233.1181742352@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/109 X-Sequence-Number: 25777 Joost Kraaijeveld writes: > I have moved my database files from their default location to their own > partition on with their own controller and disks. PostgreSQL works OK > and I can connect with Pgadmin (Debian Lenny AMD64, PostgreSQL 8.2.4). > When I want to connect with psql however (with a non-root account) I get > the following: > panoramix:~$ psql -d my_database > Error: Cannot stat /pgdata/8.2/main > /pgdata/8.2/main is the location where the database files are actually > located. psql itself has no business touching the database directory, and a quick search of the source code shows no instance of "Cannot stat" anywhere in released PG sources. I think you are being burnt by some misbehavior of Debian's wrapper patches, and a complaint directed there is the next step for you. regards, tom lane