pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: temporary data after diskspace error
Date: Mon, 27 Jan 2020 10:10:16 -0600
Message-ID: <17ed219d-b0bd-dead-2004-834d7abd6721@gmail.com> (raw)
In-Reply-To: <CAHnozThPqqeT4ECoYFy0iFyk1oZgkQBYr3S=w2C8h3rdXwm05g@mail.gmail.com>
References: <CAHnozThPqqeT4ECoYFy0iFyk1oZgkQBYr3S=w2C8h3rdXwm05g@mail.gmail.com>
On 1/27/20 10:05 AM, Willy-Bas Loos wrote:
> Hi,
>
> We have a server with postgresql 9.4.12 on ubuntu.
> There has been a sudden rise in the amount of disk space used by
> postgresql, causing a diskspace error:
>
> 2020-01-22 17:24:37 CET db: ip: us: PANIC: could not write to file
> "pg_xlog/xlogtemp.23346": No space left on device
> 2020-01-22 17:24:37 CET db: ip: us: LOG: WAL writer process (PID 23346)
> was terminated by signal 6: Aborted
> 2020-01-22 17:24:37 CET db: ip: us: LOG: terminating any other active
> server processes
>
> The disk was at roughly 75% before and something or someone added 150 GB
> to the database, bringing the disk space usage to 100%.
> The query that got the initial error was creating a rather large table,
> but it is not confirmed that this is the only source of the large-ish data
> amount. But it is possible.
>
> Now i can see in pg_stat_database and postgresql/9.4/main/base/pgsql_tmp
> that there is 90GB of temporary files in the database.
>
> Could the amount of temp files be caused by the unfinished query? I'm not
> sure how strong Signal 6 is exactly.
>
> And also: How can i make postgres clean up the files?
> Can it be done without restarting the cluster?
> Will restarting it help?
Restarting postgresql clears out pgsql_tmp. "pg_ctl restart -D ..." should
be all you need.
--
Angular momentum makes the world go 'round.
view thread (7+ messages) latest in thread
Message-ID: <17ed219d-b0bd-dead-2004-834d7abd6721@gmail.com> Permalink: ../17ed219d-b0bd-dead-2004-834d7abd6721@gmail.com/ Also on: postgresql.org/message-id/17ed219d-b0bd-dead-2004-834d7abd6721@gmail.com ·
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: ronljohnsonjr@gmail.com Subject: Re: temporary data after diskspace error In-Reply-To: <17ed219d-b0bd-dead-2004-834d7abd6721@gmail.com> References: <CAHnozThPqqeT4ECoYFy0iFyk1oZgkQBYr3S=w2C8h3rdXwm05g@mail.gmail.com> <17ed219d-b0bd-dead-2004-834d7abd6721@gmail.com> * 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