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 1k7lRz-0007qw-Un for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Aug 2020 20:09:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k7lRy-0007Qj-TF for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Aug 2020 20:09:46 +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 1k7lRy-0007Qc-IS for pgsql-hackers@lists.postgresql.org; Mon, 17 Aug 2020 20:09:46 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k7lRw-0001Cn-99 for pgsql-hackers@postgresql.org; Mon, 17 Aug 2020 20:09:45 +0000 Received: by mail-qt1-x841.google.com with SMTP id t23so13450485qto.3 for ; Mon, 17 Aug 2020 13:09:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=vd9t2SpPdCDjjRu9yYEzQ+JPHkSBWQMnnQnG5dBqNC0=; b=vVpFKVbxVW23e1cwe1R7pb6Y4oBe0ONT4Lv8xcUrLZWKMtuJjEO1mfqsmSBWzAQqDt yI80RYi5HXkcLu8v3Amellu7F+9gZUpF+cj6qyaWa2eWmysQhRKfhIknKsWgYykV85lL KIbQTaX7fRCFH+rovN7yd7PgadCMUKMMwBa/u0g0GVAzWEInNVU79lAnDXqUvx/+1COL xoliIPo8SfUDi6J7ffqbSBu/BlydWWKqBDIVyUdS57uhZRMQ34sfWw5Q+V2oV08ApuS6 vu1nfzvF1yCRcaAj/DadoiQVv8GR8UbYJC23od4tR4tyQCwV9GfVR9uk/8ckRZgCddmI d1gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=vd9t2SpPdCDjjRu9yYEzQ+JPHkSBWQMnnQnG5dBqNC0=; b=hQy3g5Y3SwHPH80/XuNzltG/DMqnP+qT1V5iZFUPQ1cRf79M8DqhUfWpe1JcLeLTeu hMWPU1hEm0e5OA2qD5IBj9IZvUJZc7sIdr8rfBMl8XD5wirNS6bzWoVRuPouRmA/O+JM 4N4uYqB47DLuuuM1mKcD9yYSFR4NzPnFOP6iR6zAiQK1ql2U7jL08/xO2wfokyS48/+W Q1mRYVvWrmqQFcYz9cm0utj4fV6N645nBOqeVqPtVU1Ox/uYmvMwBXITbKqGcYPUZEqZ M1ZnGKImBwjchawl8cy1+MMICYzg2atkRTANPgOlSq7MRAUR+7tgsk0Qut8bD19rzCB5 Fagg== X-Gm-Message-State: AOAM531t6VO5f5Tbz+H+MZKOOitcBTC6r7IzUqLEm1efTFF2HDs8o2pr E4FomMKzDhTHmLOgIjDD05CWVQ== X-Google-Smtp-Source: ABdhPJwKiJ65xfWpw6kTjt0ROCP7qR5N+EBe/gphw5XPmuUqpVDlTZoWtGPtpNkFyNZIimOxSOE8lw== X-Received: by 2002:aed:3bb3:: with SMTP id r48mr14869959qte.328.1597694983208; Mon, 17 Aug 2020 13:09:43 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id l64sm17451771qkc.21.2020.08.17.13.09.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 13:09:42 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id E98D12A151A; Mon, 17 Aug 2020 16:09:40 -0400 (-04) Date: Mon, 17 Aug 2020 16:09:40 -0400 From: Alvaro Herrera To: Peter Geoghegan Cc: Andres Freund , Tom Lane , Robert Haas , Thomas Munro , Daniel Gustafsson , "Jonathan S. Katz" , Alexander Korotkov , PostgreSQL Hackers , Bruce Momjian , David Rowley Subject: Re: Improving connection scalability: GetSnapshotData() Message-ID: <20200817200940.GA8323@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Aug-16, Peter Geoghegan wrote: > On Sun, Aug 16, 2020 at 2:11 PM Andres Freund wrote: > > 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. > > Maybe it would make sense to mark the fields as inaccessible or > undefined to Valgrind. That has advantages and disadvantages that are > obvious. ... and perhaps making Valgrind complain about it is sufficient. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services