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.96) (envelope-from ) id 1vtOmt-004Z8x-1B for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Feb 2026 11:35:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vtOmq-007gdz-2w for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Feb 2026 11:35:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vtOmq-007gdr-1i for pgsql-hackers@lists.postgresql.org; Fri, 20 Feb 2026 11:35:08 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vtOmn-00000000ND1-2wsV for pgsql-hackers@postgresql.org; Fri, 20 Feb 2026 11:35:08 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-387097ae2e3so17334221fa.2 for ; Fri, 20 Feb 2026 03:35:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771587305; cv=none; d=google.com; s=arc-20240605; b=NzMDoS4Q9YA9Rm8+kgeK4hocr4Sv++fxAumVHUUd+a5E4UPOyCtx0WxyrKr+iUNysc Ye22Iew6m31BHoXHvf2JwMfHdhHIpgmNcttBfpecQpVJQgBahBtUg6nwNiHAr0BK+Kw9 0nXCzLCH2rxRo+YDn3M2dJIsCNOeE/ThgqboEBD8p0S3mkhn0ClaSaCIeCRETLgy+A26 YLvSNPA046ZJi5cNZ4+SeK7WW5LNtDmgPSPuX2YPQKLro7jvnlp6rQ6VctmbmWitqelZ Gjolci0FglkTo3tdwJsIGedobPLO9+i7C340WRHHEPuRbNChyowjty6NIS+QbdwARU8D P/FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pk95WYkR2UQzmNuwhWXkjH02j40Hv8wJfPcZWi6OINg=; fh=YSxbnK7W4P7OGU5EiEWhqkkiMZWn0lTmQ0vlryVg3SU=; b=KVZf4Ecdx+SWukVisWFQDOj7o0yVzjNSELa/Bze9EGwRH6EwmiTvws9dfhnm5mi0ig LjZEu/mxMohneP/zW9H0K/TVmlteOexcLBj4EWWHObyzu0/D6KtnPaeO2N8c4m58pXrg lbAXNNiL5xusWbxZt6VHtOtOjTFSucaXb6ZZZhD2+yckES47jfs8Wft9osEb6W7CBfjO I/41guz6NyOhJa7auY5qdsYpH305Fg3o2um0zhMQXo3mb0m0u3QJKsNuRxGK9jnq+3gn ZZvVrNP6H6JJ2vAT6HFPIL5w4vzdk64w1WXmaPNG0Mg5jhhtD+GybsdiCfg9qrTOhJaX jNuA==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771587305; x=1772192105; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pk95WYkR2UQzmNuwhWXkjH02j40Hv8wJfPcZWi6OINg=; b=hzK1u1FGTRPjbG2BfYTgB8IoOD27vIkK4uBhYwhWr3xPtpGRDEXD+s1JN4OeWWb48u OTM/unz71VmRgOhWCmQcGDXyVAeY9MsVCwEBWysX/6b8TtrRNmzkhrOUQDATlteqtkYO /zGLtDeJi1cJDUu8J8N3ViN+L8oa3h4hv7EDlkzZai8dRg05TDj7T3ULLZrHmP0Fk4tv HNM2Z5OfU4+dBOb+7yQDlb+NG3TRAM6Xi4d+x5O2p3j2uKQF4c5jBXXVqHCyPtk5AjSS BjBGAlkDmPxLjxJ3NzvaDxk0pyPo+vh2sqFZRkxaaOEMwrrGgH2Z4ZGHEkS3bYlTNeFn apGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771587305; x=1772192105; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=pk95WYkR2UQzmNuwhWXkjH02j40Hv8wJfPcZWi6OINg=; b=RVzIbKFc5RFkRqGtUjt7TxQKDEeEJkBs/+/pu9nqIYHuxHaCVOXu1dLL5WP8aw7udR 6NTvmLSXdNbPc/U5dSuIRxwaJPZ01DpXVMfTxa6ZXnxTIEjIByy/NgR8XEJzzUpFScUU oUMC5OWtGeuTjt5BPQSwjicbrrSp90qa9ykc6DMzenqBQW5hRj28ivjCUZ6zPwbHeSwh P91Z5L4yN61C5Yxg0G0PSyBQuGd75Mj8OP9Rp4fldVdU68mfy04uyohajSs7oRL7dNx1 oYaDJSy+g+D2Ub9PAaSK9WkoR3SMSWuaVnPwIS3hE5XHMfx3y8P67FU3PYd56vtooKFb aAqw== X-Forwarded-Encrypted: i=1; AJvYcCXAwu5QZjK76EuGd5r6BF6cSTG7+n7gvSOh0n3Lus2YpqFvac+zKCc9uZKxooHT+x8X6/lv7U4ArokzqDzT@postgresql.org X-Gm-Message-State: AOJu0YysZ2/AQpnBv9L85TqZghnTFWZQCIW/uzhLlL2rpJvR4NGww/71 P877dV5tdPymA3DN2GSw3bi9gCRahMZqjO5CYN7HwGjVPQucQERsTkFYjtKx9jSJjk8NyKO2cnv q7GQRjP3PCj11g5+W3QsqDBgfxEa5OyE= X-Gm-Gg: AZuq6aIKe+amTMqSeeobXwq1x48v7RG0OHjsm/Qb4YxJuFlFIAzRmVUzMxG/Vftt4DE B9enrUQiOGC8OeGCyjJiI8TPJub2munbbAqjlQGV5P7fGoA15ZGMCEzyxe+SKAO5PSHniwRyRCq RLnViZMRL5Kz8ALx7S4uywoqDlMP2xdLLb4vH9qU6CAYLE63vMlDKJdaXPOr2tpWgkIywXB5L84 GoSz7jMBl7HwuCljUlbrPwWvg+9JqwF/tqaMON0OMz9RLmb2Xeg/G9ptBoIFo2zloGqqmVWXvzx IJDbFg7royjPF6UN1ki65jNlWTysn0JChX57kBvRwV0wjMcf4At2S3n6VGHzHC/KBHng9nykFlT C865mPA== X-Received: by 2002:a05:651c:31c9:b0:387:eb1:9322 with SMTP id 38308e7fff4ca-3881b8cfffamr58155011fa.17.1771587305094; Fri, 20 Feb 2026 03:35:05 -0800 (PST) MIME-Version: 1.0 References: <182311743703924@mail.yandex.ru> <5381759333107@mail.yandex.ru> <56771759769555@mail.yandex.ru> <132271759810943@mail.yandex.ru> <1809191759818745@mail.yandex.ru> <545321760005292@mail.yandex.ru> <689211760456931@mail.yandex.ru> In-Reply-To: From: Amit Kapila Date: Fri, 20 Feb 2026 17:04:52 +0530 X-Gm-Features: AaiRm53Mc92RG7DR2Kc5s3tp2IGhy45_DHSqJX7w7HeGr95GsaEK_f4bHC6tAtY Message-ID: Subject: Re: Patch for migration of the pg_commit_ts directory To: "Hayato Kuroda (Fujitsu)" Cc: ls7777 , "pgsql-hackers@postgresql.org" , "orlovmg@gmail.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Feb 20, 2026 at 4:35=E2=80=AFPM Hayato Kuroda (Fujitsu) wrote: > > > One of > > the use case I recall is to detect conflicts with accuracy after > > upgrade. See docs [1] ("Commit timestamps and origin data are not > > preserved during the upgrade. ..) I think this note needs an update > > after this patch. > > Right, and code comments [a] should be also updated. > So, leaving aside update_delete, copying commit_ts could be helpful to detect some other conflicts. You may want to once test the same and show it here as part of use case establishment. > BTW, is there a possibility that we can export and import xmin of the con= flict > slot to retain dead tuples even after the upgrade? Of course it's out-of-= scope > from this thread. > Yeah, this is a good point to explore separately. The key thing we need to evaluate is whether the rows corresponding to old_xids are retained. We probably need to evaluate the epoch part as well in old cluster's slot. We do call set_frozenxids() for new cluster that might have some impact on the functionality you are looking at. > > Also, _on in the variable name appears bit odd. > > I have two options, thought? > - commit_ts_is_enabled, This looks reasonable to me. --=20 With Regards, Amit Kapila.