Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xt1fQ-00030d-9t for pgsql-bugs@arkaria.postgresql.org; Mon, 24 Nov 2014 21:59:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xt1fP-0006dD-Hx for pgsql-bugs@arkaria.postgresql.org; Mon, 24 Nov 2014 21:59:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xt06K-000645-99 for pgsql-bugs@postgresql.org; Mon, 24 Nov 2014 20:19:12 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xt06B-0002PW-Cr for pgsql-bugs@postgresql.org; Mon, 24 Nov 2014 20:19:10 +0000 MIME-Version: 1.0 Subject: BUG #12050: Orphaned base files To: pgsql-bugs@postgresql.org From: jkoceniak@mediamath.com Date: Mon, 24 Nov 2014 20:18:15 +0000 Message-ID: <20141124201815.15509.290@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 12050 Logged by: Jamie K Email address: jkoceniak@mediamath.com PostgreSQL version: 9.1.14 Operating system: Debian GNU/Linux 7 Description: I have identified a number of tables that were dropped in the db but the files still remain under /9.1/main/base/. How do I go about verifying this is true and how do I clean this up so I can reclaim the disk space? I checked in the pg_class table but none of the objects exist. For example, # SELECT pg_relation_filepath(oid) FROM pg_class WHERE pg_relation_filepath(oid) like '%2601708994%'; pg_relation_filepath ---------------------- (0 rows) Here is an example table under /9.1/main/base/ but not in pg_class anymore: -rw------- 1 postgres postgres 1073741824 Nov 10 22:51 2601708994 -rw------- 1 postgres postgres 1073741824 Nov 10 22:51 2601708994.1 -rw------- 1 postgres postgres 1073741824 Nov 10 22:52 2601708994.10 -rw------- 1 postgres postgres 231424000 Nov 10 22:52 2601708994.11 -rw------- 1 postgres postgres 1073741824 Nov 10 22:51 2601708994.2 -rw------- 1 postgres postgres 1073741824 Nov 10 22:51 2601708994.3 -rw------- 1 postgres postgres 1073741824 Nov 10 22:52 2601708994.4 -rw------- 1 postgres postgres 1073741824 Nov 10 22:52 2601708994.5 -rw------- 1 postgres postgres 1073741824 Nov 10 22:52 2601708994.6 -rw------- 1 postgres postgres 1073741824 Nov 10 22:52 2601708994.7 -rw------- 1 postgres postgres 1073741824 Nov 10 22:52 2601708994.8 -rw------- 1 postgres postgres 1073741824 Nov 10 22:52 2601708994.9 -rw------- 1 postgres postgres 2981888 Nov 10 21:17 2601708994_fsm -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs