Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hF6BY-0004Gp-S0 for pgsql-general@arkaria.postgresql.org; Sat, 13 Apr 2019 00:06:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hF6BW-0003kk-PK for pgsql-general@arkaria.postgresql.org; Sat, 13 Apr 2019 00:06:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hF6BU-0003kc-QV for pgsql-general@lists.postgresql.org; Sat, 13 Apr 2019 00:06:18 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hF6BL-00048V-Tr for pgsql-general@postgresql.org; Sat, 13 Apr 2019 00:06:16 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id D296E6D5; Fri, 12 Apr 2019 20:06:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 12 Apr 2019 20:06:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=7 NNM7Uew+8SoRnR6mWeYpcbO+1hLfvor67mdE4zEQmI=; b=HniiGVVDzq9zJRo0C sK4Ad1+Ic1ceQ2ZQTAlBYMwFxKMks2J/AyEO18M8YFBmUKbYbMpgoS5oDdT3vmDQ ngz3rUZK9ieby2oMDMJYGDFqPK1pxSBhek69j9DBnmfVQzPotv2Td1cIHN3ysBIv OxQ+QDmWtvNri5Zb1BnSW+NM1b1I/xHRKHV/2bPnQPcyHE6FwxRahyOB35+1w/5J kmdix87EBVdN/hkCdaq7oS9NnExM/z6KBNwa3LggpBR97FY4sjBG6kkVV+AXn0x+ dSgf06rJsZLlUVL0KAvQbAH8D03MPr/w77GHoc9fceeqB5CLHYH7blGLn+LSXwoN 0yViw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=7NNM7Uew+8SoRnR6mWeYpcbO+1hLfvor67mdE4zEQ mI=; b=huA+rQkojiFMi9EFLoXzXRKVOGsdfnZUp8Dw8v/Io4zMeuWe8l9vstChe Y78ezDULS81HyJNklK61JhVd/UO2RHSTU3S6+d81dkKuxHM+aCDWBUy+ilKvIEej Q5fkH5yM/0TXRMVYwFsb/OEVYxR743mDAw4TltnPlwJEzejuKdzgXuV0mpjiz4Iy sxxjUoiGsBFvEmY2hLukJS9vkNcEbFKUd6YnXmA5+a4eBDzGLdg2tUUHWb/ZUR7W BTjpKDqKaSyuWjM4w5jhDI7a0MFcxDkjv7alo+8uVxjkRM4fnJnIpLNyMIIL6HW2 I9MgI66V5STVTgJZ6D5MI4lfVghVg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrvdefgddvjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucffohhmrghinhepvdhnughquhgrughrrg hnthdrtghomhenucfkphepjedurddvuddvrdduhedtrddvtddvnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuve hluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 8C6F4E40FF; Fri, 12 Apr 2019 20:06:03 -0400 (EDT) Subject: Re: Safe to delete files? To: Paul van der Linden , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: <5c1fffd2-6fbe-a083-be90-8a69ee343318@aklaver.com> Date: Fri, 12 Apr 2019 17:06:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/12/19 1:11 PM, Paul van der Linden wrote: > Hi, > > For my process, I needed to drop all the tables in a tablespace except > one which I truncated. > After that I would have expected to have a couple of KB max in that > folder, but there was about 200GB in it. > > There were 2 sets of files (, .1 .. .99, and the same for > id2). Can you show the actual dir listing? > Tried the various options from > https://blog.2ndquadrant.com/postgresql-filename-to-table/ and oid2name > (with -i), to trace it back to a table but all came up empty. > > Now this folder has a bit of a history spanning several postgres > versions and upgrades, and sometime in the past one of the upgrades went > horribly wrong, so my first thought was that this was possibly some > leftovers from that mishap, but the filetimes were a bit later than that. > Also hard to tell because those tables are used as write-once, read-alot > so could not base the last usage on filedate. > > Normally I probably would dare to risk deleting those files, but after > the dropping and truncating, the 2 files without extension had the time > of drop/truncate and were 0 bytes in length (unfortunately I didn't > check the filesize before drop/truncating). > > Are there other options to see if these files are leftovers from > previous stuff and not used by postgres (so i can safely delete them)? > > Postgres 11, just one used database on it (the other one being a postgis > template), running on windows server 2012. > > In replies please use reply to all... -- Adrian Klaver adrian.klaver@aklaver.com