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 1k7QD5-0002tH-EI for pgsql-hackers@arkaria.postgresql.org; Sun, 16 Aug 2020 21:28:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k7QD4-0007p0-D0 for pgsql-hackers@arkaria.postgresql.org; Sun, 16 Aug 2020 21:28:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k7QD4-0007ot-6N for pgsql-hackers@lists.postgresql.org; Sun, 16 Aug 2020 21:28:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k7QD2-00064w-07; Sun, 16 Aug 2020 21:28:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 07GLSkbB1020080; Sun, 16 Aug 2020 17:28:46 -0400 From: Tom Lane To: Andres Freund cc: Robert Haas , Thomas Munro , Alvaro Herrera , Daniel Gustafsson , "Jonathan S. Katz" , Alexander Korotkov , PostgreSQL Hackers , Peter Geoghegan , Bruce Momjian , David Rowley Subject: Re: Improving connection scalability: GetSnapshotData() In-reply-to: <20200816211146.nodohy6ck6mzfjwi@alap3.anarazel.de> References: <20200812001938.ixenvxdpg4ielbue@alap3.anarazel.de> <20200812173855.s4co5jz67z7tlnl7@alap3.anarazel.de> <872191.1597504251@sss.pgh.pa.us> <20200815164200.drok4tt5ju7ijivf@alap3.anarazel.de> <20200816181604.l54m6kss5ntd6xow@alap3.anarazel.de> <1006917.1597602624@sss.pgh.pa.us> <1013484.1597609043@sss.pgh.pa.us> <20200816203153.xqfvuevinjkweuez@alap3.anarazel.de> <20200816205258.pjvmoljrk7ntqb3n@alap3.anarazel.de> <20200816211146.nodohy6ck6mzfjwi@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 16 Aug 2020 14:11:46 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1020078.1597613326.1@sss.pgh.pa.us> Date: Sun, 16 Aug 2020 17:28:46 -0400 Message-ID: <1020079.1597613326@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > For the first, one issue is that there's no obviously good candidate for > an uninitialized xid. We could use something like FrozenTransactionId, > which may never be in the procarray. But it's not exactly pretty. Huh? What's wrong with using InvalidTransactionId? regards, tom lane