pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <myon@debian.org>
To: Adarsh Sharma <eddy.adarsh@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Unknown database folders in base directory
Date: Thu, 7 Jun 2018 10:58:12 +0200
Message-ID: <20180607085812.GA16531@msg.df7cb.de> (raw)
In-Reply-To: <CAGx-QqKyW-UuMTw9Vw9uCX_Af+8GhS1HdkNLt6uV9DnxQGV0eg@mail.gmail.com>
References: <CAGx-QqKyW-UuMTw9Vw9uCX_Af+8GhS1HdkNLt6uV9DnxQGV0eg@mail.gmail.com>

Re: Adarsh Sharma 2018-06-07 <CAGx-QqKyW-UuMTw9Vw9uCX_Af+8GhS1HdkNLt6uV9DnxQGV0eg@mail.gmail.com>
> *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




view thread (2+ messages)

Message-ID: <20180607085812.GA16531@msg.df7cb.de>
Permalink:  ../20180607085812.GA16531@msg.df7cb.de/
Also on:    postgresql.org/message-id/20180607085812.GA16531@msg.df7cb.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: myon@debian.org, eddy.adarsh@gmail.com
  Subject: Re: Unknown database folders in base directory
  In-Reply-To: <20180607085812.GA16531@msg.df7cb.de>
  References: <CAGx-QqKyW-UuMTw9Vw9uCX_Af+8GhS1HdkNLt6uV9DnxQGV0eg@mail.gmail.com> <20180607085812.GA16531@msg.df7cb.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox