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 1fLwnV-0003qh-5p for pgsql-general@arkaria.postgresql.org; Thu, 24 May 2018 20:25:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fLwnT-0001oI-9h for pgsql-general@arkaria.postgresql.org; Thu, 24 May 2018 20:25:15 +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.89) (envelope-from ) id 1fLwnS-0001n8-Vd for pgsql-general@lists.postgresql.org; Thu, 24 May 2018 20:25:15 +0000 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fLwnP-0007nC-RQ for pgsql-general@lists.postgresql.org; Thu, 24 May 2018 20:25:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1527193511; x=1558729511; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Nbe3vwuq+MxUNCEZaG5J1nroKF4STYmLDFYwSPssk3k=; b=BN3TxlPLoN4GW3KLUS015KyFiAaIE4Lj7fmad5Z606YLm+9OnczQYth9 jhF6/c5IVemwbI88EX5GoXB+Y0cX4XhpEMSNUgJisin6E0YgiR8dHtDLM caEQ4iG0iNb/TxnrqyDsP/LDXwbZ4x64s3c0OcsXvgVPCSWmECHjL8Wi+ A=; X-IronPort-AV: E=Sophos;i="5.49,437,1520899200"; d="scan'208";a="680362975" Received: from iad6-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-1d-5dd976cd.us-east-1.amazon.com) ([10.124.125.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 24 May 2018 20:25:07 +0000 Received: from EX13MTAUWA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1d-5dd976cd.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w4OKP4Is075696 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 24 May 2018 20:25:06 GMT Received: from EX13D04UWA001.ant.amazon.com (10.43.160.47) by EX13MTAUWA001.ant.amazon.com (10.43.160.118) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 24 May 2018 20:25:05 +0000 Received: from EX13D04UWA001.ant.amazon.com (10.43.160.47) by EX13D04UWA001.ant.amazon.com (10.43.160.47) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 24 May 2018 20:25:05 +0000 Received: from EX13D04UWA001.ant.amazon.com ([10.43.160.47]) by EX13D04UWA001.ant.amazon.com ([10.43.160.47]) with mapi id 15.00.1367.000; Thu, 24 May 2018 20:25:05 +0000 From: "Wong, Yi Wen" To: Andres Freund , Paolo Crosato CC: "pgsql-general@lists.postgresql.org" , "pgsql-hackers@postgresql.org" Subject: Re: Error on vacuum: xmin before relfrozenxid Thread-Topic: Error on vacuum: xmin before relfrozenxid Thread-Index: AQHT8hLB/CPvz//1CEGNlddXT7ueCKQ8TYwAgAAasQCAAu27Jg== Date: Thu, 24 May 2018 20:25:04 +0000 Message-ID: <1527193504642.36340@amazon.com> References: <20180522164911.lczs6qsod23tx6eb@alap3.anarazel.de> <20180522211937.bfotr476fkn3rav6@alap3.anarazel.de> ,<20180522233957.zbflihb5qrsh3vqp@alap3.anarazel.de> In-Reply-To: <20180522233957.zbflihb5qrsh3vqp@alap3.anarazel.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.160.149] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Precedence: Bulk List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello,=0A= =0A= We have also seen this issue ourselves and are actively working on it. We d= o not have a definite proposed solution or full RCA yet, but we have manage= d to narrow down the cause to stale values of relfrozenxid in the relcache = for shared relations.=0A= =0A= We are in the process of coming up with a repro as well. =0A= =0A= A proposed workaround to this issue is to delete global/pg_internal.init. T= hat will allow a vacuum of the shared relation to proceed.=0A= =0A= Thanks,=0A= =0A= Yi Wen Wong=0A= =0A=