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 1qH2tj-0006zG-DM for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Jul 2023 13:50:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qH2th-0000MQ-Qa for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Jul 2023 13:50:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qH2th-0000MH-He for pgsql-hackers@lists.postgresql.org; Wed, 05 Jul 2023 13:50:21 +0000 Received: from mail-ua1-x929.google.com ([2607:f8b0:4864:20::929]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qH2te-002M2z-Sm for pgsql-hackers@lists.postgresql.org; Wed, 05 Jul 2023 13:50:20 +0000 Received: by mail-ua1-x929.google.com with SMTP id a1e0cc1a2514c-791a0651fa3so2151541241.0 for ; Wed, 05 Jul 2023 06:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688565017; x=1691157017; 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=iM7/bj+oLprcq9xpy13UGrAwc1FCt4mPlqNnVt47UB4=; b=n40tNZOjFf484Sxdxm2wPQimGAzMuuyeMHicAxd7z/FqwTCRloKk4jCMXePkeO0W9X vZ9dYyrOX4kzSCTyR84yp3jReY7TqcGu895CaAw3vBSvihWqss466+tTWBwtn5V8YgTc 6awjnv4J5sRNM4sDoJIanq1cQvpEUs75A7mN5hiCKyyvonw4NyddJoEWM34CtTO9zFmL UZ2/cVHd3ggnvdmZp7gJO7x2t74EqjDnr2JLK7NAJdETW8XY5BPSbIOy+Lx8My86iazL 1YYfKHgEZnjlqiQ0r2J1NCxqg9ssbMLv6ExBdE/EOZ7z6C63RlbyhjT2En1K11wHSv3L NccQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688565017; x=1691157017; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iM7/bj+oLprcq9xpy13UGrAwc1FCt4mPlqNnVt47UB4=; b=YyKJnypIlu8Ro57BVS0QAGawZawDEpxPNwKsMWbBklj2eaf3XKAz7wMe7B3fYm1rPs Y7ZL/UKm65Po1xq1ao/TD0NoKVBF+HcwevHmj/8PqKNaoWIPkGDrR8b+cKv1k4Rk6rK/ VsXa2ogc1zRJ+iZs3hTDolBCakKv1vga33ca8fdnLr0xBqXD9/RIL3hgenjcnLAFai/V 3IOfj6OE/jyv5OUb2jIBAtQANpEeAWBHrXh8+U2KH/IV4Cw5V7zn293brdQbGFWD7Grs XDh/m2KRaL4hulj8g596ZvFNaBF/umitgS7N19zw93KfvUKJYOPSFwlbUKOs0IxGqn7s 3QwQ== X-Gm-Message-State: ABy/qLbJlpQgac5RyM9loqmIoxHq9e2frZZcPSSQDpzWBR/HJx+usv0K bVP59ih18XxD8l34UT/FpTwGUcDTgj76nqMVMB0= X-Google-Smtp-Source: APBJJlHNjbeIYVbVDlFibXnzHwJ1c7VmIBPRSgQjDlHQlwir2mMHNlCYizKd44jV4PcEsJyWMms235nv14U2PsOH4F8= X-Received: by 2002:a05:6102:50d:b0:443:70bd:719f with SMTP id l13-20020a056102050d00b0044370bd719fmr7301904vsa.2.1688565017153; Wed, 05 Jul 2023 06:50:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ashutosh Bapat Date: Wed, 5 Jul 2023 19:20:06 +0530 Message-ID: Subject: Re: pg_decode_message vs skip_empty_xacts and xact_wrote_changes To: Amit Kapila Cc: vignesh C , "Zhijie Hou (Fujitsu)" , PostgreSQL Hackers 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 Wed, Jul 5, 2023 at 2:29=E2=80=AFPM Amit Kapila wrote: > > On Wed, Jul 5, 2023 at 2:28=E2=80=AFPM Amit Kapila wrote: > > > > On Mon, Jul 3, 2023 at 4:49=E2=80=AFPM vignesh C = wrote: > > > > > > +1 for the first version patch, I also felt the first version is > > > easily understandable. > > > > > > > Okay, please find the slightly updated version (changed a comment and > > commit message). Unless there are more comments, I'll push this in a > > day or two. > > > > oops, forgot to attach the patch. I still think that we need to do something so that a new call to pg_output_begin() automatically takes care of the conditions under which it should be called. Otherwise, we will introduce a similar problem in some other place in future. --=20 Best Wishes, Ashutosh Bapat