Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tNJ59-00A4Ll-Et for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Dec 2024 21:56:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tNJ55-00BVBz-AE for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Dec 2024 21:56:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tNJ54-00BVBp-RA for pgsql-hackers@lists.postgresql.org; Mon, 16 Dec 2024 21:56:48 +0000 Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tNJ53-003BYy-Ah for pgsql-hackers@postgresql.org; Mon, 16 Dec 2024 21:56:46 +0000 Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-3a7750318a2so36582125ab.2 for ; Mon, 16 Dec 2024 13:56:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734386204; x=1734991004; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=QnwNRR+xGbdy9MrOOXDOhqHnHqPyYpNCBsMYSwR+XqM=; b=lq28eWrYICtSbY0wfHpYPWJYhvHRtRzsMJwUOD739ukWkOz3ZlT8uPWTDDqmAns0M3 mxuwdqqqj0Z4q0lztw4rgJRqKRIAPhMx761PLuQ9ur545o9jTKaeqbjbyikt2TLSznBi Wq7cLnQnVDERUIgQcJKgOIJmC0/Foc8D3d4BSg5MbTPoc016jWHCSQKADtV6wfcRGEt7 dxHSvNXt/K0YwFjzjRYuVazXy9po8yQl39BN2LGDgBZl/DwyLQjFK4enOyff2V3XJGNw DPhvtexfywE0orMNWxE6OiuRu/0ASUNyZF9AfiDRFtqhvHoaNEaNOZiAepKwLyByhdB1 hEAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734386204; x=1734991004; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QnwNRR+xGbdy9MrOOXDOhqHnHqPyYpNCBsMYSwR+XqM=; b=INWuAUxwW5RoqdBDM0LiEoIZIMF27P8phCIvMQW0PvOGChETqjBgWqNT7BN4zAfmrE R6E6wB/fseBNHQDkkRclGLBfzdHM4mw/vRumn6kGVRbbylTqfHWzHtjmIkfO94vhvQTY SrnJIUjyEMnYt1TcRF+0/I01PCEDC/G0lRbn949WQlEikiSJG/hnOKR2I5jyM0HmVFNV RnNoaYn6oVh+qbtBPyLTgNPmbiZFCnR/BsmdD+L6GJ8sXnWOE9YjAKWkkiEmqmO+vVR7 aE+tK3f+D3PadlKPBi07MW2eQ/fxqplHdX2gXtdem/x+f7pc057bhZEaNeN3SkA1jfUm +dSQ== X-Gm-Message-State: AOJu0Yx/7J5UHEGEsWO2Y6Qvcf193g9yc7Et79hlBlZVdzSbzepse7OH Gxcm348F8l+hR1EgYSnDwcPLZODHMl3DmYS2Ovs/rXmU2ysvJD1y X-Gm-Gg: ASbGncvNKOp2R8g+uSDvZxV2Sp02GRB0N4wGA1Uidp7a6AxYFJLCKlSA9LfJOMHcnRo meat1M4fKoD4LgkwlQuB6WCrTuvKplRWEknm9Ac+DKJt7VWo5tCVuol5ukxL9sfHa/lgw1WB5Qe 0wldQrw2v63QIc0bN5oxuLwKtsW3fynUWG05dBeSmQCIGGXRRT5V+pnpCGZnLnw6W0Ino11yCLY Z3sHAkFWkj594J6frhNd2OHEQcJBoiTHqLOkat3p8rXM8wZkdidj5Y2XPD921z4IDVsfzUF4e+9 RINmXtL+G/XM1MGelNKY5qlOzjP4t9QXdyBDZbqw9jeRDWM= X-Google-Smtp-Source: AGHT+IH+eFmG8q2QGVN+Ucv0A5XtG610Gh8/p42yEFJpLAnOTCwT1TPliV8EV7jzf4h/3jVydigv1A== X-Received: by 2002:a05:6e02:12ce:b0:3ab:8f76:bcfd with SMTP id e9e14a558f8ab-3bad5fb8072mr19104985ab.20.1734386204423; Mon, 16 Dec 2024 13:56:44 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3b2475afaffsm17585585ab.10.2024.12.16.13.56.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2024 13:56:43 -0800 (PST) Date: Mon, 16 Dec 2024 15:56:42 -0600 From: Nathan Bossart To: Heikki Linnakangas Cc: "pgsql-hackers@postgresql.org" Subject: Re: A few patches to clarify snapshot management Message-ID: References: <7c56f180-b9e1-481e-8c1d-efa63de3ecbb@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7c56f180-b9e1-481e-8c1d-efa63de3ecbb@iki.fi> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Dec 16, 2024 at 12:06:33PM +0200, Heikki Linnakangas wrote: > While working on the CSN snapshot patch, I got sidetracked looking closer > into the snapshot tracking in snapmgr.c. Attached are a few patches to > clarify some things. I haven't yet looked closely at what you are proposing, but big +1 from me for the general idea. I recently found myself wishing for a lot more commentary about this stuff [0]. [0] https://postgr.es/m/Z0dB1ld2iPcS6nC9%40nathan -- nathan