Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLpCN-00034x-Ld for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2020 14:27:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jLpCM-00058W-If for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2020 14:27:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLpCM-00058P-AW for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2020 14:27:30 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jLpCG-0005yW-7L for pgsql-hackers@postgresql.org; Tue, 07 Apr 2020 14:27:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=8WOhYuTjfUdpolirQTwFZTiBWuOXT1rdFvZQ8wSoRQI=; b=i6zRlOfSorgOFH5tWzS6hHxwar NuYJZ6s+ZhS9f2HJmyDwwN7L6q6nhmqMSeAc1KarM/N07zaU/aYCOS0ZPmXZ8ZKi02qRjTDcE3gHc lDeg8eQIvlBM2O6o7G0eyMkp63avg0obC1imZDwxMkCVnnAu/4ZJ9aEFTnAvpcu8nRrpQbWBzkmwz XSM6pOhP+9U9tabtkVzEerQUNgegxA/X+qo+xYPGIWxgGqDgg39VvdWWaDzeayIC4cDgJcn9L2oXZ eexYC2nQrOKe04sH/gTmXvc5pTp7K8xBi0IV+T+y2zCqN/u1ot3umnSeO6+0jLtNA7DGFYLvNR1i2 UuEE37wg==; Received: from pool-173-56-10-231.nycmny.fios.verizon.net ([173.56.10.231] helo=Ph33rHippo.local) by meldrar.postgresql.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jLpC9-0008AC-Py; Tue, 07 Apr 2020 14:27:20 +0000 Subject: Re: Improving connection scalability: GetSnapshotData() To: Andres Freund , PostgreSQL Hackers Cc: Peter Geoghegan , Alexander Korotkov , Alvaro Herrera , Bruce Momjian , Thomas Munro , David Rowley References: <20200301083601.ews6hz5dduc3w2se@alap3.anarazel.de> <20200406133959.viql5fqecog6mppj@alap3.anarazel.de> <20200406235228.lnxcau2wgocnnn22@alap3.anarazel.de> <20200407121503.zltbpqmdesurflnm@alap3.anarazel.de> From: "Jonathan S. Katz" Autocrypt: addr=jkatz@postgresql.org; keydata= mQINBFtShwABEAC7PNHDUOTYuifpUCk23KqfxdQQkn4nkoxOXRK0+rAj36FiwqGB4TJFuOVZ sDFAEiSlC8Jt4y5Cs7B5tetT8JNd2cs6zp/udMJJDz9d65O9PDpdlMgAmIiTzpLlSdx8FG56 DTksaDv1d8j3cTJPSE4/fWSxqzA7o3Y9UuL7atZPrzfImgpRKs0of7elIHwOa8GucjyhYqcR h60wFBJc2KXqQdDYRTZy43DSnY/0VNc0omiH355fustvpm+m5HjD3w7qZyfN3fpKJpnX1LCF f3MnPHaDGITIYGRCBXvf0UqUtD6OEVWPv2C2gyqWMIpWmZTOgDufltKyIByKBoS9x0PlFkij 04X3KODCngt+N8Ssc9OICc6QSxhjoP48PYPdmiTmkrGuf0LX084wj1xeo1NX7XxZK39F6dTJ DhsIiW0sNS0xMxQHLHG9VLbPjx3SANQBh6BuryPz5ZupW9/TIDmkvprtU/oXfKgtfYm3fxmk EctxbWrEPsFTFPyuMqQu6l+xyQv0s1VLZfjNWaua6H1/gGoIt6kRnn5qMXDVVpijuW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sZ3lZ2ZhRHRYciOvm kp+I6EfHwllQpYrWs1thluBGqlJSVJgKl0IOFvKLsQ6KKfqzAwh6FxrO5qajp4viNIgtWoFw O5Bp0jgFTbH2OrMWIRfUdUCH1Djbuo65svhNj7FNsQVYzHDI+Nd1I/LOBoPc3UorRMF2M4JV kUR7skOHWUbPTSNUr7qc14NSMY3PKjGeVGAsBVHBPvmRx/Ss2tW/TpJWpxg4pmquFQSXuaYh Yf4FN8Sxy320pcr+FqN8AhZkYJcNY82OTtR5VEKRC/mYcyq61qXIKqngydn79bJjGxHipxyF FmEC Message-ID: <6be8c321-68ea-a865-d8d0-50a3af616463@postgresql.org> Date: Tue, 7 Apr 2020 10:27:11 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200407121503.zltbpqmdesurflnm@alap3.anarazel.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PeVGliQ8V0pbr54HZgdPnVxfHn1LiwGWz" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --PeVGliQ8V0pbr54HZgdPnVxfHn1LiwGWz Content-Type: multipart/mixed; boundary="H9KANdPcUbRpMAphiH1yl3tArnO9n6JFp" --H9KANdPcUbRpMAphiH1yl3tArnO9n6JFp Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 4/7/20 8:15 AM, Andres Freund wrote: > I think this is pretty close to being committable. >=20 >=20 > But: This patch came in very late for v13, and it took me much longer t= o > polish it up than I had hoped (partially distraction due to various bug= s > I found (in particular snapshot_too_old), partially covid19, partially > "hell if I know"). The patchset touches core parts of the system. While= > both Thomas and David have done some review, they haven't for the lates= t > version (mea culpa). >=20 > In many other instances I would say that the above suggests slipping to= > v14, given the timing. >=20 > The main reason I am considering pushing is that I think this patcheset= > addresses one of the most common critiques of postgres, as well as very= > common, hard to fix, real-world production issues. GetSnapshotData() ha= s > been a major bottleneck for about as long as I have been using postgres= , > and this addresses that to a significant degree. >=20 > A second reason I am considering it is that, in my opinion, the changes= > are not all that complicated and not even that large. At least not for = a > change to a problem that we've long tried to improve. Even as recently as earlier this week there was a blog post making the rounds about the pain points running PostgreSQL with many simultaneous connections. Anything to help with that would go a long way, and looking at the benchmarks you ran (at least with a quick, nonthorough glance) this could and should be very positively impactful to a *lot* of PostgreSQL users. I can't comment on the "close to committable" aspect (at least not with an informed, confident opinion) but if it is indeed close to committable and you can put the work to finish polishing (read: "bug fixing" :-) and we have a plan both of testing and, if need be, to revert, I would be okay with including it, for whatever my vote is worth. Is the timing / situation ideal? No, but the way you describe it, it sounds like there is enough that can be done to ensure it's ready for Beta 1. =46rom a RMT standpoint, perhaps this is one of the "Recheck at Mid-Beta"= items, as well. Thanks, Jonathan --H9KANdPcUbRpMAphiH1yl3tArnO9n6JFp-- --PeVGliQ8V0pbr54HZgdPnVxfHn1LiwGWz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE+oS2la8r95ogZD/x8QSccp8cZScFAl6MjcAACgkQ8QSccp8c ZSdQ6A/+JlCCm9c6FxDaZol1oHVVUU38MTYyDmMP3PXPrK0tHuy3rMBAviMFJFEW s1+vpGuKDMX5naSNDDEp0HOKvaZ0sWkyFgYO87l36c/oPzxL620BJeU/vE3fsiSB w81kvxXdalvfnCz5dgj/jX69WIlvdPwVIE8i8QW5/RwaV8XryGKjQ3m5PXhMgcsU FvrBV/Ry4A+NeQzTe4i7nJ8UrFRA2wIujLOxu0OW0iod9+7aPowoSCBeUwa/nowy LEu06gqPcXgei0aOGPmQPLz0kmTzUgocsJYK5g/hNWY/vK18+ttQRp8XpseurgJX loD0TwCChuBgSnff2iQElTIlatOtO13BlCrxnNsmQV86wvJgCEJ+ph18zUC2DndO JxnICW26b9q9vjmqjGnF8m5T5NQV6Xy4Zl8xtha+c+eiX/7do6VysuCDtpY5nNDa L9iMLpmu79aqhUibElWw0D4JSk7JavJdtzx+pCeMeHr3qMw/T70pN1KV+VYkNmTI 0IoJ6bht4tRRtzvsvnv5qjx23MxqrB639eR8kgrMNZ8ourwcAuPX11ortdxifWcV tfDUopNuYG2t2/wuYb/QI1xO/h/p7iiEjS7d65tvCyjAHkG64bRtmYIQVO+inq+i VDvW7g3q/wbED4Y6nwvjmARm73Ok1JQ2m7rlI2Txong3YmXxPG8= =CwUR -----END PGP SIGNATURE----- --PeVGliQ8V0pbr54HZgdPnVxfHn1LiwGWz--