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 1pcxed-0007pf-8t for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Mar 2023 00:09:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pcxec-0002sH-48 for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Mar 2023 00:09:06 +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 1pcxeb-0002qY-Oc for pgsql-hackers@lists.postgresql.org; Fri, 17 Mar 2023 00:09:05 +0000 Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pcxeZ-0006V3-4t for pgsql-hackers@lists.postgresql.org; Fri, 17 Mar 2023 00:09:05 +0000 Received: by mail-ot1-x333.google.com with SMTP id w21-20020a9d6755000000b00698853a52c7so1973248otm.11 for ; Thu, 16 Mar 2023 17:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679011741; 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=ic8l2kQb3oOIZHsguut6ZmV+LtcsT3GPnyILgxot7bY=; b=IZY1ASjqJdo147AbTdVe3IBdJrUcniMSooTyFcQ14gybOvMYmGtnvr6KK6T87oK56u az2KwVutJ4QyxxW5lHiZRLCl5aKU4QQQyG9/7tEr38vzj2ZdJqD2VnCwa+ZTZnldUNz5 mxVColbXI+d/n94uTumPhNBoMZmakSHPoFV6ZJNTGP4b7tHZcV4n6qSK6igRXeJfPQ+3 0nvtRcyKjRzVM2cjt2cE7ZpyaRMrat0MykF1z3+YZZmnsXfXFad9W2OOkEZrc40oAVth lnzWU2Zok7AQL6d99lsZIsyRwGcrRB71zh69ksBslDNg0SIgeiUcIxcKi3fWOG/z9zsX Zqtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679011741; 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=ic8l2kQb3oOIZHsguut6ZmV+LtcsT3GPnyILgxot7bY=; b=VWlRMtl8gzx4KOG1iHyYZAmPUx5WBkE2Egc30B4iVhnBPoG8wSfioZs69jgx9Y3Lwz ZBf4+SjDAscq+Q0VzA/TM4GqF4o4KDo/byHSNy2LMn1dV90nSYHiKQv4+aB2TUJ+BInd jy0E3nEWiRgG2WIltbjYWPHTLrYwZpO5uu6fn2U2CebyUbDM1je8f4/jSYBwzzQtPtK/ vqLy7WXvanNPyRP/tiJm3HI2TaJMwdp+PS3vMmPDMQ90Ij2itPqXaBSnI74z63Drs4IN HJfOLrwrSg6OqvaAgWUwf/Vqj9H83lZtWhHJkeC4dJ2gd7vOeHkljXhY1j4fc9K5neVe Rhhw== X-Gm-Message-State: AO0yUKWaoRuqilz8yLxa7Iq3fOTxIUa3X8PiLsKsRGBiPN7CN7uoBPrN bgRUxlOmsJUNeZfDK4J0vBFSdf+wDptF0oqglo0= X-Google-Smtp-Source: AK7set+TL4O1MRanfT3JJA/y/xoFOUDTVVMxle7r7/QWeukrd4eHCAXqbXoECkBgXVhFKjqbzHj6zW60BLw/H6XxJAU= X-Received: by 2002:a9d:817:0:b0:697:4358:b042 with SMTP id 23-20020a9d0817000000b006974358b042mr3843916oty.4.1679011741170; Thu, 16 Mar 2023 17:09:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Fri, 17 Mar 2023 05:38:50 +0530 Message-ID: Subject: Re: Dropped and generated columns might cause wrong data on subs when REPLICA IDENTITY FULL To: =?UTF-8?B?w5ZuZGVyIEthbGFjxLE=?= Cc: "shiy.fnst@fujitsu.com" , 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 Thu, Mar 16, 2023 at 9:33=E2=80=AFPM =C3=96nder Kalac=C4=B1 wrote: > > Hi Amit, Shi Yu, > > > Generated column is introduced in PG12, and I reproduced generated colu= mn problem > in PG12~PG15. > > For dropped column problem, I reproduced it in PG10~PG15. (Logical repl= ication > was introduced in PG10) > > So, I'm planning to split the changes into two commits. The first one fix= es > for dropped columns, and the second one adds generated columns check/test= . > > Is that the right approach for such a case? > Works for me. > > and backpatch the fix for dropped column to PG10. > > Still, even the first commit fails to apply cleanly to PG12 (and below). > > What is the procedure here? Should I be creating multiple patches per ver= sion? > You can first submit the fix for dropped columns with patches till v10. Once that is committed, then you can send the patches for generated columns. > Or does the committer prefer to handle the conflicts? Depending on your r= eply, > I can work on the followup. > Thanks for working on it. --=20 With Regards, Amit Kapila.