Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 09B0D2E008A for ; Tue, 15 Apr 2008 12:51:37 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 71409-08 for ; Tue, 15 Apr 2008 12:51:23 -0300 (ADT) 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 developer.postgresql.org (Postfix) with ESMTP id 8044D2E0084 for ; Tue, 15 Apr 2008 12:51:23 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m3FFpK9N015277; Tue, 15 Apr 2008 11:51:20 -0400 (EDT) To: lfedden@contextworld.com cc: pgsql-admin@postgresql.org Subject: Re: OID and filesystem issues In-reply-to: <4F91850CA8.07DC00FATFSFQGQL@contextworld.com> References: <4F91850CA8.07DC00FATFSFQGQL@contextworld.com> Comments: In-reply-to lfedden@contextworld.com message dated "Tue, 15 Apr 2008 16:25:22 +0100" Date: Tue, 15 Apr 2008 11:51:20 -0400 Message-ID: <15276.1208274680@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/148 X-Sequence-Number: 28912 lfedden@contextworld.com writes: > Even when logged in as root, a 'ls -l' command returns: > mm2:/var/lib/pgsql82/data/base/16673 # ls -lash | more > /bin/ls: 19357877: Permission denied > /bin/ls: 19569529: Permission denied You get that as root? I think you've got filesystem problems that are beyond the ken of us mere database weenies. Better ask some kernel hackers. (If you're on a SELinux-enabled system it might have to do with SELinux permissions, although I thought that those typically weren't enforced against interactive shells. It might be useful to look in the kernel log and see if anything comes out when you do this.) > So can we assume it is safe to remove these none accessible files and also the couple of orphaned OID files from pg_class we can still access? If it won't let you chown it, it likely won't let you rm it, either... regards, tom lane