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 1o791k-0007ci-3v for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Jul 2022 05:17:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o791i-0006Qo-DE for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Jul 2022 05:17:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o791i-0006Qf-4h for pgsql-bugs@lists.postgresql.org; Fri, 01 Jul 2022 05:17:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o791d-0000Ou-F5 for pgsql-bugs@lists.postgresql.org; Fri, 01 Jul 2022 05:17:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2615Gxs3568158; Fri, 1 Jul 2022 01:16:59 -0400 From: Tom Lane To: "houzj.fnst@fujitsu.com" cc: Amit Kapila , "396934406@qq.com" <396934406@qq.com>, pgsql-bugs Subject: Re: pg15 beta2 bug:cause by logcial replation In-reply-to: References: Comments: In-reply-to "houzj.fnst@fujitsu.com" message dated "Fri, 01 Jul 2022 04:09:22 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <568156.1656652619.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 01 Jul 2022 01:16:59 -0400 Message-ID: <568157.1656652619@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "houzj.fnst@fujitsu.com" writes: > On Friday, July 1, 2022 11:35 AM 396934406@qq.com <396934406@qq.com> wr= ote: >> ERROR: could not receive list of replicated tables from the publisher:= ERROR: column t.attnames does not exist >> LINE 2: , t.attnames > Just to confirm, did you use the PG15 beta1 or earlier PG15 version > as the publisher and use PG15 beta2 as the subscriber ? It looks to me like this was an attempt to replicate from 15beta1 to 15beta2, which would fail because commit fd0b9dceb imagines that any server reporting version >=3D 15 will have pg_publication_tables.attnames, even though that column was not there in beta1. I bitched about the ill-timing of that schema change at the time but was outvoted. At this point I think it's water over the dam. We could perhaps change that test in fetch_table_list(), but it'd require access to the source server's catversion, which I don't think is readily available. In any case, by the time we could provide a fix it'd be useless to testers of beta1; they'd have updated already by some other method. regards, tom lane