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 1wU128-000tbb-0G for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jun 2026 11:42:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wU126-009u4N-33 for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jun 2026 11:42:14 +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 1wU126-009u4F-1m for pgsql-hackers@lists.postgresql.org; Mon, 01 Jun 2026 11:42:14 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wU124-00000000eJV-1IWr for pgsql-hackers@lists.postgresql.org; Mon, 01 Jun 2026 11:42:14 +0000 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-396771119c4so12817161fa.0 for ; Mon, 01 Jun 2026 04:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780314126; cv=none; d=google.com; s=arc-20240605; b=I1wmHEj7Pylj8YG2WJRTPZAlFE5s1IMQkCKiKSmsw7NR4ttiVAaJjfeo007xjmziKN UPH7fynn7rgNQZFUc1G6E3drwBU8rWd1aAh6rdYQfW608ZufR2WUWvzJxYEn0e1VMzEf hCLr0amouYSA6BycjPC4BcBJlDXdfPrY3jubv8Fer4NKI5Zzv8xFw3NU6n3lEryKAeT8 71PobWIotGTvBFUYVSELO5LJgxNol61G9YH8zpDrLQx4fmreaZAmPLDlIwybLK8iH85/ 4fMoCVi7VPBVKNze4Zy2ZChuUfW4SArdsHtqAHV06nsxefpl3G/BWwfjY37wKwEQGGw3 y/BQ== 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=DMr19x3+RQ5Drdw5dRvymLvTKtjDxl2SmhM9/qTu1QI=; fh=924TY/yhdlASmrdqY9nwMXf83lLW/62yMJF61TaDN+g=; b=PRCanTMEBmJGtrGz7s/C1jn03v2xIShIw38wV5tYssuomKlfm5q7+DNpkBdn1owjHf Fmcs1AuAHZSSWQVqeZ5yctn9690+sgYdbE9Sr783ZD6s9Mq4WXCPwWKm7Z6dVmbJv90g OUbp7aCsdE+V97iA1q94yVsZEWkmg1e9dRTmhTi8GP0rgvvj9WGsTSyvyW7coZkoc4/v 5PEdVxw9Smq07Ht7BezE+J2rmw3Vp05j6vKmFqV9rq2ba1cLflx8FOZis081H1XbG7J9 DeT5TEqJIn2kiypNw+VYLXo6yW6Tk9OCWzi00hq1ETkCadzUTf9tfSEyDhlATfWOeThk km9w==; 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=1780314126; x=1780918926; darn=lists.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=DMr19x3+RQ5Drdw5dRvymLvTKtjDxl2SmhM9/qTu1QI=; b=leG/Hvlkx1fZOOYRd52BVFfeAaITUTZot+EwGAgl9p0VZsOn4cowJihgwAC4usLyo+ BnYJM335zcHVJMb6P22dtngratew0i3bvNMuiQcGKttW7Gr8M+ENNHwim0miAnpRscec Yzl0N/OPzPANGR9JKLA+oUODgh7qePBpFirHWbcooY7m+KmeaAv4f0vzc7RVJx6gsAqe 4pn3P+lX2lPaqdMhAMBypLQUuVrnT78W8p0yF0/go+1Fi92+GjCTVk9DRDPkrgh3CXoS 6y7Y05mugS/CeYrfnIIriw4ypl7KYYUFEilUbGBL04AaPCF8kgqizhYcJzvuBgZjfk6p igPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780314126; x=1780918926; 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=DMr19x3+RQ5Drdw5dRvymLvTKtjDxl2SmhM9/qTu1QI=; b=qEFj1B7iLqP/eZ8Vp8ZwID6W4obNrQ0B5+4NMcy15CHOtDl5v/PZKfx191M8Kdr14F RqcL30UYhDzaMVJs5GxagE4w9Wzs8Tues4HLgzeqnAG0yJxwZMdbvRlXUDcrjYEEv7Rw 22ysD/s/b8TE1ClUEbMWk7/UgcxG3pBxepKs9AghR9Q8/fuYkr/BZaGz00Jrbzpe3AJ4 YcJ54XcY/kSBi/jSAec6/+1H7pAWBN7EvEI9kBsyg9LDTUCvieiVOG2IXNYGBZhvekys Hi0axadZjDAE1FuFhxsC424A7RkIOmI1SK952xn7tyqHUSlkDU7u3bI7lW4VIenx2MU7 8NrA== X-Forwarded-Encrypted: i=1; AFNElJ9ruggmYfGgLihkOvvwtleoX/Nd/mphYI6y92GKQ9eRcAjACmokXX5J6P+ALbJcw25zSOVTjwtIxW81GbBn@lists.postgresql.org X-Gm-Message-State: AOJu0YxZCDatmauTSTYv6NcGB3LjLQZQHryOSX/GG9Bnn3fQsetBLYyQ oX2yr/JO/eKSDUdqkOVC1+r9/1Xufh7iDYTWIHgtxUZ8bMKifWMU0SdbmReYUZjG/RLlL46j56s LsWbW85kUZlu9PQSXgL2+ENmIo9pLWzA= X-Gm-Gg: Acq92OEoHWK+xKzUKo1V+SnFzUMeGfvA2kbjFplYUCZZ/308mVmifxufkKn4SsKQmfu A6dttIOmS2wO+lFfSmwUAUl36XATg/KIj0iysCPtUu3V8QQZyNA8V7KYrAxXNI7kwJ15p3UNYbH hhxBu+dR6dshLt0edJGd7V4ooARk7aIZb5tCn+timojFGpv0jYWROiznjvgZ2P96sGGlT4kNKok hqdRn2RRWZrlNewuL1jkeTzIJoXZAZwyQsiE9onszGzkxrw3J7oNwGCWFhdHQXjwvt8nbl3mnOy UHP8OdPOcreJnU+m373/UfiyYQGJ+tvdAr5MbM2UzHoZFZTVy7EFON69k7Bnbm9oBbiytE2Rt7x SZU24qnbEP2gbRlhaDsc4eYHQ15iZOXbV4ozu+MpY69Se2e60ZlPU X-Received: by 2002:a05:651c:4394:10b0:38e:ae31:f0a5 with SMTP id 38308e7fff4ca-39664eae139mr21547181fa.9.1780314125948; Mon, 01 Jun 2026 04:42:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Mon, 1 Jun 2026 17:11:52 +0530 X-Gm-Features: AVHnY4KkxKwASJe8FvHSIBV3hvWoU4ZBEPj85x8NVh-Hmk728NT31CO3dFrQkWo Message-ID: Subject: Re: Proposal: Conflict log history table for Logical Replication To: Dilip Kumar Cc: Peter Smith , Nisha Moond , vignesh C , shveta malik , Masahiko Sawada , Bharath Rupireddy , PostgreSQL Hackers , shveta malik 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 Mon, Jun 1, 2026 at 9:03=E2=80=AFAM Dilip Kumar = wrote: > > > > 2. If you agree with the above, then let's make similar changes at > > > other places in the patch. We can change > > > alter_sub_conflictlogdestination to alter_sub_conflict_destination. > > > Also, similar to AlterSubscription_refresh and > > > AlterSubscription_refresh_seq, we can name this new function as > > > AlterSubscription_conflict_dest. > > > > > > 3. Now, let's consider whether we should change the option name to > > > conflict_data_destination instead of conflict_log_destination? The > > > reason I am asking to consider this change is that one of the option > > > values is 'log', so it sounded a bit odd to name the option as > > > conflict_log_destination. If we change this then we can consider > > > changing the name of Enum ConflictLogDest as well. > > IMHO the 'log' in name conflict_log_destination doesn't really sounds > confusing with destination 'log'. The conflict_log_destination > clearly indicates the destination for the conflict log whereas the log > in values "log/table/all" says the destination is server logs. > Fair enough. But let's at least change function names as I suggest. I would like to suggest changing GetLogDestination to GetConflictLogDest(). drop_sub_dependencies() is too generi, the function only drops the conflict log tab, so, calling it drop_sub_dependencies implies it handles all subscription dependencies. drop_sub_conflict_log_table() is more accurate and won't confuse future readers who see it called from DropSubscription. CONFLICTS_LOGGED_TO_FILE(): "File" is not what the server log is called anywhere in PostgreSQL, it should be CONFLICTS_LOGGED_TO_LOG(). Additionally, IsConflictLogTableClass() vs IsConflictNamespace() sounds inconsistent. --=20 With Regards, Amit Kapila.