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 1pqpvI-0002bl-Vk for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Apr 2023 06:43:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pqpvH-0004ig-KV for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Apr 2023 06:43:39 +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 1pqpvH-0004iF-AY for pgsql-hackers@lists.postgresql.org; Mon, 24 Apr 2023 06:43:39 +0000 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1pqpvC-004kdd-8i for pgsql-hackers@lists.postgresql.org; Mon, 24 Apr 2023 06:43:38 +0000 Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-6a6091ef0easo1124706a34.1 for ; Sun, 23 Apr 2023 23:43:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682318612; x=1684910612; 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=KTBUDvbhkxDbZecpuaB/3wxqTWB0wheG9dduyLnUfnM=; b=KOeQIR3jcBUNWqOrANqgnJYYhawIa3T0I5YoNsSVDHT3QcoMAiKu0z5lGIM7k6AD6H 5vfIrFTS50FTmrSmbDHzyY5wMc+9CF4d4HdSTELZJ6Dm+Fdwopc7OpFdekHJ0uheiXHw r6B2LpqKFCqRnGJNmfRehw4i1X5/gZctku6mPMRrwexP3fafAridR/XeKk1Cu2JWccSB CPWxnMF3e4JctU11p2z8xd+u/pcrj90XkzPBFR+Yt8jbDrU3TDV9HOFxiQPGrYY8Gpsn CEciL0U7BzlDJ3hdf7itgrBWN/RP+ry/+7cxkv5mhghAZkfA3CuskyLJTa5zWqnf1Jdg yjcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682318612; x=1684910612; 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=KTBUDvbhkxDbZecpuaB/3wxqTWB0wheG9dduyLnUfnM=; b=VKzKXiMUPqfCpNNg+8ok0GZWd80hOtpKnwThCmjuuMggft4nSczkWWIDCd3OkJe5Rf 4XrkjGKtVETKhZTsd2e3kSg1NhG7kckMnYl5/HbIZUQuFt/NtgHK3t6sQtifY6FfWPH4 Hp9mztNTSjYx+z0eudOTgvvP993ErNK7ne/YsLNv9JP2Ci23e2D6dKNnc5ROMbdkU5mu iKq5kh2EF2r44Kqdhfg0iksE1zZmS3Vc+u133k7ks9AxbL+QO5/gfuXR9xF8YlKW+oXM H+alAFYDhZ1A1lJ+50zDZvRtNKIRQ1lguj7bvp3dszEn+IST1vTfA+97rnqDuKJC7+0d QCEw== X-Gm-Message-State: AAQBX9cIgbgpLCcao4Fd1dASSdIA3VEoQhmnZuOYUjk2AUE4Hca1db1U i8okebagY5N7W4QY+FGvyzHGnfiX6JpvLx1qyEQ= X-Google-Smtp-Source: AKy350aXwl5vzBjiJEYRWCcLleXHPjxUj7VtJAmLJgOMtF+IRoMtVwrJCVKjk+uUNLuw7SXSIqlSA79jbg/kU60Bnzw= X-Received: by 2002:a4a:c712:0:b0:547:50b4:9236 with SMTP id n18-20020a4ac712000000b0054750b49236mr4681637ooq.0.1682318612333; Sun, 23 Apr 2023 23:43:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Masahiko Sawada Date: Mon, 24 Apr 2023 15:42:56 +0900 Message-ID: Subject: Re: Perform streaming logical transactions by background workers and parallel apply To: Amit Kapila Cc: "houzj.fnst@fujitsu.com" , "wangw.fnst@fujitsu.com" , Peter Smith , "shiy.fnst@fujitsu.com" , PostgreSQL Hackers , Dilip Kumar 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, Apr 24, 2023 at 2:24=E2=80=AFPM Amit Kapila wrote: > > On Mon, Apr 24, 2023 at 7:26=E2=80=AFAM Masahiko Sawada wrote: > > > > While looking at the worker.c, I realized that we have the following > > code in handle_streamed_transaction(): > > > > default: > > Assert(false); > > return false; / silence compiler warning / > > > > I think it's better to do elog(ERROR) instead of Assert() as it ends > > up returning false in non-assertion builds, which might cause a > > problem. And it's more consistent with other codes in worker.c. Please > > find an attached patch. > > > > I haven't tested it but otherwise, the changes look good to me. Thanks for checking! Pushed. Regards, -- Masahiko Sawada Amazon Web Services: https://aws.amazon.com