Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQqkP-00012d-D0 for pgsql-general@arkaria.postgresql.org; Thu, 07 Jun 2018 08:58: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 1fQqkO-0008Cd-3L for pgsql-general@arkaria.postgresql.org; Thu, 07 Jun 2018 08:58:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQqkN-0008CT-Ny for pgsql-general@lists.postgresql.org; Thu, 07 Jun 2018 08:58:19 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQqkK-0005YM-P1 for pgsql-general@postgresql.org; Thu, 07 Jun 2018 08:58:18 +0000 Received: from msg.df7cb.de (unknown [IPv6:2003:5b:203b:100:7627:eaff:fe52:8e03]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 411fZr5Wvnz3Dwy; Thu, 7 Jun 2018 10:58:12 +0200 (CEST) Date: Thu, 7 Jun 2018 10:58:12 +0200 From: Christoph Berg To: Adarsh Sharma Cc: pgsql-general Subject: Re: Unknown database folders in base directory Message-ID: <20180607085812.GA16531@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Adarsh Sharma , pgsql-general References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Adarsh Sharma 2018-06-07 > *drwx------ 2 postgres postgres 163840 Mar 19 18:18 2567078690* > *drwx------ 2 postgres postgres 237568 Mar 19 19:10 2567168798* > *drwx------ 2 postgres postgres 151552 Mar 19 19:19 2567176994* > *drwx------ 2 postgres postgres 172032 Mar 19 19:34 2567193375* These have all similar timestamps. Were you repeatedly trying to create new databases at that time, but ran out of disk space and PostgreSQL was panicing? That would explain the issue. You can safely remove old database directories that are not referenced in pg_database - you don't even need to shut down first, as PostgreSQL doesn't know about the files anymore. Christoph