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 1fLDHs-0006X0-CR for pgsql-general@arkaria.postgresql.org; Tue, 22 May 2018 19:49:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fLDHp-0000dS-VT for pgsql-general@arkaria.postgresql.org; Tue, 22 May 2018 19:49:33 +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 1fLDHp-0000dI-Jr for pgsql-general@lists.postgresql.org; Tue, 22 May 2018 19:49:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fLDHl-0002b3-GW for pgsql-general@postgresql.org; Tue, 22 May 2018 19:49:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w4MJnRXD017165; Tue, 22 May 2018 15:49:27 -0400 From: Tom Lane To: Tiffany Thang cc: pgsql-general@postgresql.org Subject: Re: pg_multixact/members growing In-reply-to: References: Comments: In-reply-to Tiffany Thang message dated "Tue, 22 May 2018 15:22:58 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17163.1527018567.1@sss.pgh.pa.us> Date: Tue, 22 May 2018 15:49:27 -0400 Message-ID: <17164.1527018567@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tiffany Thang 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