From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tiffany Thang <tiffanythang@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: pg_multixact/members growing
Date: Tue, 22 May 2018 15:49:27 -0400
Message-ID: <17164.1527018567@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB_W-NPMuRdAtGapGuorT4y6jUtCWndqMJHqKaw4FcypPhKGXQ@mail.gmail.com>
References: <CAB_W-NPMuRdAtGapGuorT4y6jUtCWndqMJHqKaw4FcypPhKGXQ@mail.gmail.com>
Tiffany Thang <tiffanythang@gmail.com> writes:
> Our pg_multixact/members directory has been growing to more than 18GB over
> the last couple of months. According to the documentation, the files in
> there are used to support row locking by multiple transactions and when all
> tables in all databases are eventually scanned by VACUUM, the older
> multixacts are removed. In our case, the files are not removed.
Hmm. What does pg_controldata tell you about NextMultiXactId,
NextMultiOffset, oldestMultiXid, oldestMulti's DB?
Are pg_clog/ or pg_subtrans/ or pg_multixact/offsets/ getting large?
Is there anything at all in pg_twophase/? Is this system a replication
master, and if so are any of its slaves lagging behind?
> Any
> suggestions what I should do to purge the files automatically? Can old
> files since the last reboot be manually removed?
I wouldn't do that. Much safer to figure out what's blocking automatic
cleanup so you can fix the root cause.
regards, tom lane
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, tiffanythang@gmail.com
Subject: Re: pg_multixact/members growing
In-Reply-To: <17164.1527018567@sss.pgh.pa.us>
References: <CAB_W-NPMuRdAtGapGuorT4y6jUtCWndqMJHqKaw4FcypPhKGXQ@mail.gmail.com> <17164.1527018567@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