Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gThxm-0003lI-IK for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Dec 2018 06:44:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gThxl-0001S7-2Q for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Dec 2018 06:44:13 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gThxj-0001S0-Hf for pgsql-hackers@lists.postgresql.org; Mon, 03 Dec 2018 06:44:12 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gThxf-0001nv-JM for pgsql-hackers@lists.postgresql.org; Mon, 03 Dec 2018 06:44:10 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A9A5C7FE; Mon, 3 Dec 2018 01:44:04 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 03 Dec 2018 01:44:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=IGGMjd19vWEqen3PwfhSAxCPXXP 2Y34+8mz6Hs8DiWY=; b=ExERgjotoKqTY0vmovm506n+LX8HH1sGB3ssVDbbmy7 MoUsDEn5WbOFwqO+BZxMlgpaB8O+PmzKwAhUbLhHwnZtPbTme+Wscx+Z/ONX4bC5 pBKQVDc7c8Ths2+ciLZCqfcFhXhMEMZNYEWBA+w4LMPidbin5QBvQdD/jlMgXD1E wgCjOw76///z4lw2iu+PPlgC+K9pTSxKCOzA/43OTjnAV+RYLdHMghFN1SttdWwt BC6QjzQC+NYEyWtm1hOwjYf9/6iDbwQaZsspsrzO4UGijW10gHsXjf/4am5sVn7n KwYDd9x42o1TeGixOU2Tl+3TB7t9r5lkk9ezMzC5DaA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=IGGMjd 19vWEqen3PwfhSAxCPXXP2Y34+8mz6Hs8DiWY=; b=MjGhPNHmZPkA2hXj0TyOX3 Tk668mQt+O83ODLJRMySVC9Btamt1sOMFqZMYPw9wmLEIa/i7KchvYTtI2rRg8nP rDKUqI6A/joqtjEpFpbPZAcm2j0rgKiPtYGTfST+eoTSqBOunKEwHGE7OgpQZ+Ii /v+olf2lXuj99f+ojLjK3hFAtkBfaNnMQ4pm2oiho1ke667Y1j1EpXznbOsBdQub qCuLJn2J1yotHSRBxg6VlNB/3nmGy21KY6+gidrGpnYeO7HTMPw8uN4mEUBcibWz q9468QkO+hQ3aalOx5L21IangZ43wo60dXArprpqmhpMEwEeTgYCGLpENz/M9VNg == X-ME-Sender: X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id C09F1E44D4; Mon, 3 Dec 2018 01:44:01 -0500 (EST) Date: Mon, 3 Dec 2018 15:43:58 +0900 From: Michael Paquier To: Simon Riggs Cc: Alvaro Herrera , Andres Freund , PostgreSQL Hackers Subject: Re: pgsql: Avoid duplicate XIDs at recovery when building initial snapshot Message-ID: <20181203064358.GI3423@paquier.xyz> References: <20181022174155.wxxu2qt3bcrbrqy5@alap3.anarazel.de> <20181022221538.d73yxdypbmmzmi2l@alvherre.pgsql> <20181023014338.GA1658@paquier.xyz> <20181101060911.GG1727@paquier.xyz> <20181130230804.GC1846@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LYw3s/afESlflPpp" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --LYw3s/afESlflPpp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 01, 2018 at 10:51:10AM +0000, Simon Riggs wrote: > On Fri, 30 Nov 2018 at 23:08, Michael Paquier wrote: >> It is not complicated to >> handle duplicates for xacts and subxacts however holding ProcArrayLock >> for a longer time stresses me as it is already a bottleneck. >=20 > I hadn't realised this patch holds ProcArrayLock while removing duplicate= s. > Now I know I vote against applying this patch unless someone can show that > the performance effects of doing so are negligable, which I doubt. Me too after more thoughts on that. Please note that I have marked the patch as returned with feedback for now. -- Michael --LYw3s/afESlflPpp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlwE0K4ACgkQnvQgOdby QH3TOQ/+Mqb/S2kli6PxbsZiJ05MHvoiOYia0BFADvsEPbLyRfovhTxDQKAD+bAl xGNWuhjvmZKLIRyOshem48Tz+1d2KpEcRWOfvGahR7C+06rDmuuIi97lIDvxTeJ+ GV9jcDlPjUN/jiil1jehFOVdZl0HZ5uZPfPhIjoHziAthm+/nwYGx5UXULOealVD t8mKr6LESFEV5ZIorDpvX2bTRzFH5t2Yy9CGfnzdPnXPkFX2yvNN0eNkUNqfcgJa gpa+BvvuXl4g2/hFnCUScyDyXb4feNiJRw+YKSOOeWJvA4CDn1roUaq15B7ko+tZ DGVfVwhuYh67MG9vGWIrx4EafCFCQiy1MEPQZNGQZdA7eGAtKtt2ayW24FX+e0Vy NbrKTvhpONryTob1GlRkgFqjQ0jKlcq3TJ+J4hQo8IMJwHQqllG7HPbSLVXpRf73 eYge1TzlvsgdNT9gujBbFpm2nB/qNUSB+PdtQHjlasDOm/beqd6j9u55/Y+rDcjO VRfjEgP1CY4bk6XR+0RfRxZ0r8ihT3D/1RWT4FlHsyvhGQFSxCLfem4gNSdDhcro CVRaDYy0ydW2H8DQ5MW8hYXa+nnkAtspYMEbyQEi7W9zp7vAd2mqDXuG8zX7S+tW 7g13PHI5MhFqbJiUK0S5DgdNdr2XXyqJcAMzZ582DejMZtNygNw= =br4f -----END PGP SIGNATURE----- --LYw3s/afESlflPpp--