pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jonathan Marks <jonathanaverymarks@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Rapid disk usage spikes when updating large tables with GIN indexes
Date: Wed, 16 May 2018 16:28:05 -0400
Message-ID: <11849.1526502485@sss.pgh.pa.us> (raw)
In-Reply-To: <6D9599DA-B74E-46DF-BA66-55A408A82E68@gmail.com>
References: <F16EF890-B574-487B-973F-4D8C13366DAB@gmail.com>
	<26217.1526318186@sss.pgh.pa.us>
	<E8C1D0E3-36F4-4FFF-A4DF-9E6F896DD7FC@gmail.com>
	<31807.1526324895@sss.pgh.pa.us>
	<3F92DA72-F04E-4154-AB04-B2792DD904F1@gmail.com>
	<6D9599DA-B74E-46DF-BA66-55A408A82E68@gmail.com>

Jonathan Marks <jonathanaverymarks@gmail.com> writes:
> We turned on log_temp_files and since the last stats reset (about a week ago) we’re seeing 0 temp files altogether (grabbing that info from pg_stat_database).

Hm.

> Another thread we found suggested pg_subtrans — this seems less likely because we’ve been able to replicate this across many different types of connections etc. but thought it might be a potential source.

We're running out of other ideas, so maybe, but it's kind of hard to
credit large numbers of gigabytes going into pg_subtrans et al.
Still, you could easily adapt your WAL-size query to track the sizes
of other DB subdirectories and see if anything springs out.  Since
I'm really feeling a bit baffled at this point, I'd suggest watching
all of them:

pg_commit_ts/
pg_dynshmem/
pg_logical/mappings/
pg_logical/snapshots/
pg_multixact/members/
pg_multixact/offsets/
pg_logical/
pg_multixact/
pg_notify/
pg_replslot/
pg_serial/
pg_snapshots/
pg_stat/
pg_stat_tmp/
pg_subtrans/
pg_tblspc/
pg_twophase/
pg_wal/
pg_xact/

			regards, tom lane




view thread (8+ messages)  latest in thread

Message-ID: <11849.1526502485@sss.pgh.pa.us>
Permalink:  ../11849.1526502485@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11849.1526502485@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, jonathanaverymarks@gmail.com
  Subject: Re: Rapid disk usage spikes when updating large tables with GIN indexes
  In-Reply-To: <11849.1526502485@sss.pgh.pa.us>
  References: <F16EF890-B574-487B-973F-4D8C13366DAB@gmail.com> <26217.1526318186@sss.pgh.pa.us> <E8C1D0E3-36F4-4FFF-A4DF-9E6F896DD7FC@gmail.com> <31807.1526324895@sss.pgh.pa.us> <3F92DA72-F04E-4154-AB04-B2792DD904F1@gmail.com> <6D9599DA-B74E-46DF-BA66-55A408A82E68@gmail.com> <11849.1526502485@sss.pgh.pa.us>

* 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