Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAJoN-0005pD-39 for pgsql-admin@arkaria.postgresql.org; Mon, 15 May 2017 17:29:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dAJoM-0006O7-M6 for pgsql-admin@arkaria.postgresql.org; Mon, 15 May 2017 17:29:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dAJoM-0006Ny-C9 for pgsql-admin@postgresql.org; Mon, 15 May 2017 17:29:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dAJoJ-0001bw-DO for pgsql-admin@postgresql.org; Mon, 15 May 2017 17:29:33 +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 v4FHTSBD015835; Mon, 15 May 2017 13:29:28 -0400 From: Tom Lane To: =?UTF-8?Q?Jakub_Jedelsk=C3=BD?= cc: pgsql-admin@postgresql.org Subject: Re: Autovacuum of pg_database In-reply-to: References: Comments: In-reply-to =?UTF-8?Q?Jakub_Jedelsk=C3=BD?= message dated "Mon, 15 May 2017 10:55:51 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15833.1494869368.1@sss.pgh.pa.us> Date: Mon, 15 May 2017 13:29:28 -0400 Message-ID: <15834.1494869368@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org =?UTF-8?Q?Jakub_Jedelsk=C3=BD?= writes: > The problem (can) occurs when the pg_database table hits > `autovacuum_freeze_max_age` and I'm able to reporoduce it (but not always) > with this stupid reproducer: > * set autovacuum_freeze_min_age to it's minimum - 100000 > * generating ~ 1000 DBs > * make some transactions to almost hit `autovacuum_freeze_max_age` > * `vacuum freeze` all tables in all databases except pg_database > * run a few transactions to hit `autovacuum_freeze_max_age` I tried to reverse-engineer a test case out of this description, without much success. If you have a script that can reproduce the problem (even if not 100% success rate), could you share it? regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin