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 1wgPQH-006Aaq-14 for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Jul 2026 16:10:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wgPQE-00CRV9-2T for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Jul 2026 16:10:22 +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 1wgPQE-00CRV1-1T for pgsql-hackers@lists.postgresql.org; Sun, 05 Jul 2026 16:10:22 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wgPQC-00000001tLN-16YI for pgsql-hackers@lists.postgresql.org; Sun, 05 Jul 2026 16:10:21 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-c12c22d0f86so271705766b.0 for ; Sun, 05 Jul 2026 09:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1783267817; cv=none; d=google.com; s=arc-20260327; b=RMn0WQ7ogQJHy31wpsid+usK/pP2763lcHChDY0L36B/wkrFpGS9Yc0ZMMle4ESMUk 9+g9Rulrt2C345tg2+DeuZKNu3n4t8YwQVO3F2QjdwjU+cir5LZRSDbGwGNpGs86xA4C fVBw0GTjX4p4QomGkD4xoMvgkyQ8VD+1CIEzUqalUr3xJ1JEu30MQmPwAUeUwTNyPTLl LBspVCWCUVuax9AqzoTP43k9a8qh8kB2l7P5UuCKRG36zWbpXP34d/o/j7VuT1JEpprF eYiiK7rM+rNiSvEBZo/RkFddR2kVLlB7KOoTybUp+3yE/5Q71mEdFWl4XM8+cTIRVUhV A8tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=kHjeostkTGUBzR6tmO08fx7vcO/vvTrmuiTAjHh2Gnw=; fh=nJCWCn6h1kda8NH1xfEWFKoEnob1/3TZNrAdCdBcSWk=; b=g9kdJfmYzPwItELz7YsrSDY4z6queZQQsSCc5BIHK+QLvn1mXyADeBAG+dR2H96MWp qjariopvP9PHqkqIQw4lcU+J7DMXNJxUyOvpQK6L+Kb2oYO8djV3PWQlGMH/7Q37hMuv JB1nw96iSCbXW4exWIuzmQd0Qh32/CAviC4JUqnToVQI95HUz+TgvBPqQOqKWqzQih7r 6g30jwAOPvloDUrRdcNpMdm/BJkDLoa/H51ThIAykjGa7iWnUJiyAtF9rlIIilzYNAqv bPfXrO53+/i8lD9NfXnL31kwN2jJ9mbSTtj+5UyvazW8Y24eeHaQWFyj9pqOnj4Wjyrf McxQ==; darn=lists.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=20251104; t=1783267817; x=1783872617; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kHjeostkTGUBzR6tmO08fx7vcO/vvTrmuiTAjHh2Gnw=; b=g+fPY0QE4mRtEuOCERZlkFWn6FFDolV6USOtRbYZCSMAtXdi2+Se9StwYHuSSGihg5 0v+2x8sdkvsK8T1G149o1T1rfp3sbS5zqk3c7BtLLQjI74LLOOUg8j9wwtVQ8LRV/jYI +S7H5+2UM4KZL/gQ7nPyHQfU+sJYg/I245GK66wcxmOtS4d9SuF1u0pa4xKFkASX5/4Z 1ttOxF5dbWbJSCDuqZSBCKatJ+lttM7WgMN/+enaZEWmH/13bfdi1kWpCXJ4WIYlVYe8 gShMlnEoc3imoLIO60hkW02wHWfRHHebOMqq8JXgaOY8nvU7l3MwxaIk+0DL0zLkTE9m IEgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783267817; x=1783872617; h=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=kHjeostkTGUBzR6tmO08fx7vcO/vvTrmuiTAjHh2Gnw=; b=W/5V7S6YnalUbPvRcwpzJ828vfEFBXE819snCUgF/G/MokR+ezlXMHWj8KVvFcCpag hGv6LIOtoG3pABaBiT3dZc3IIct2hYRDWlI5RQcrTgxepYMNuQouuOTvSPGAxD4w3dKP wS0NHTewFvBmZEUBpwR/LmZ7+iXFIeAsHVe1QRyl2QVoIo5aVu8YV/63rv5WLybYbZLv 23yb+Ahf1kPFfkcv5rBC7wC42qPNtZ1lnkCLemdXpn0hFWUXsB70LbKJwvFF8kR5s0dc ilKJv/ghi8TVKINQEtQNLZtGiU4tLEIU6J0ZViaW1tpvefKXvgRsi+WWBOpAas3e7nst OntQ== X-Gm-Message-State: AOJu0YxdrlB97U8VvrZ8sjvuyt+FwcOwOCi5RQqKgCM+9ehN2vjjXm+B aOQflnA+4j6TgBEtcmr25/kpnRcKqxiS2uIaRiWcIU3kMBcUiVXcJ92CRBSFt4XD5KWEYVt9Rk7 tfda/cD7OBJODA6lZ8pbjonHiqo/TiioOL5ct X-Gm-Gg: AfdE7cnBsMnGmJvmf/GT2UaCVKnUNQsRntiPpEfV7VpXetFrruVpCCH7dWZsLK0LlAt IrV+Oyo6Nyt8oHqcRrRo7SF97kRfDllVvmAa7J1HL7Pz2f38Jx5v+be9bB382nTFae0xVmff/qf jj1H11LVLTaZ+62jJXI6LBnvPoMO87ODXMJZCh8Ykn1I2MYLgjAR/mtbaq40Ts4RB7wJiroCTrr hxz9lrWfKBY43T/bXGWv5pkp3rOOlXzMhNT837nLGR5vmbDSVGn3HpqY0YlY86xSKfOVzeIyCln ssOdsVhOhLYo4eCOk82Dm5Pgpk3rlrCG04xZEzc= X-Received: by 2002:a17:907:7b85:b0:c12:e382:2ef6 with SMTP id a640c23a62f3a-c12e6482251mr256618266b.32.1783267817079; Sun, 05 Jul 2026 09:10:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rui Zhao Date: Mon, 6 Jul 2026 00:09:55 +0800 X-Gm-Features: AVVi8CdYYjew53hv24IJ_txi-huYW7FSyL3JAShQwkQC4Q4RtFXO-3FZAqrkAtU Message-ID: Subject: Re: [PATCH] Preserve replication origin OIDs in pg_upgrade To: Ajin Cherian Cc: pgsql-hackers@lists.postgresql.org, Zsolt Parragi Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Ajin, Thanks for v10. On the version gating I asked about earlier -- I think it's now moot, and the gates can come back out. Since v10, 14d8418083 ("Remove pg_upgrade support for upgrading from pre-v10 servers") raised pg_upgrade's minimum source version to v10. pg_replication_origin has existed since 9.5, so every cluster pg_upgrade now accepts already has it, and the original unconditional get_replication_origin_info() is safe again. Both gates that went into v10 are now always true: - check.c: if (GET_MAJOR_VERSION(old_cluster.major_version) >= 905) - pg_dumpall.c: if (server_version >= 90500) -- only reached under binary_upgrade, i.e. against the v10+ old cluster 14d8418083 was itself removing exactly this kind of pre-v10 version check across pg_upgrade, so dropping these fits the same cleanup. v10 doesn't apply on current master anyway (0002 fails on pg_proc.dat), so could you post a rebase? That'd let it be built and tested against HEAD, and it's a natural point to drop the two gates and go back to the unconditional calls. Minor, in that same hunk: the dumpReplicationOrigins(conn) call isn't indented under its if. Otherwise v10 reads well; the other reviewers' comments all look addressed. Zsolt, a small request -- could you use reply-all on the thread? A couple of times the CC list got narrowed, and when the reply chain continued from there I dropped off it and missed the update. Keeping everyone CC'd helps the rest of us stay in the loop. Thanks, Rui