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 1nqoqO-0002Tz-I0 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 May 2022 04:30:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nqoqL-0000ou-Qy for pgsql-hackers@arkaria.postgresql.org; Tue, 17 May 2022 04:29:57 +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 1nqoqL-0000oe-E1 for pgsql-hackers@lists.postgresql.org; Tue, 17 May 2022 04:29:57 +0000 Received: from mail-qv1-xf2a.google.com ([2607:f8b0:4864:20::f2a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nqoqE-0006T7-Uz for pgsql-hackers@lists.postgresql.org; Tue, 17 May 2022 04:29:56 +0000 Received: by mail-qv1-xf2a.google.com with SMTP id k8so94482qvm.9 for ; Mon, 16 May 2022 21:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=y155676aHwnE0b26wlKZhDJKCj3IwhiIt+ZVQ7c7Ww8=; b=hX+itB4XA5+jTQ2yHpkG2csvHsbffoppkrqpinq4vGD3uowsSPsAJVLYFhX/L+ICPa LwbPGxRasLIk4cT1UI5vKkdsizrA7XSwbHX0X/Ifl1+GYh/HpjlWkW6m12NHcHycXpS8 J2ov9IplZOslSE9EdReeLSBZFHmiJlDial9ZKRUlYXKag3ANVmV+zRygIEH6CbW8T60J fKfXj/ka9NkPvvFZQxgQT/eDvNo90JD1tmBlZ4v4wTAU4JfNKaBXKLnOBtbM6Y/bIbs0 p/eeLJzlvMWiey39N/mx0LJhaKMiP4XMNcWiuK63fGeTpcbjemmUOJ2J3gq01zlW54Tk 1cqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=y155676aHwnE0b26wlKZhDJKCj3IwhiIt+ZVQ7c7Ww8=; b=Cog08UKq6FY45FAMaacVje0EqEopdSwmHykD6fNo29dC7VtgLKEYyJ0OUpF0I5z4R4 6kwzzLvqzptEwj2GxyOeKeRt3+2xZ89X0gxHtI1ZCnPi/YlmD3og9iknkpjlAam+XebX 7wV6Mwp9C9WWeBsSXGQCnefno2xjR1htGXH5NBbAlBqGqWZgKI+yU4ODaD0uvhv16QsT lElfxDC+4oLjRxfMt5Hi8vq7s6DX/zXzXFUuvAcP2+uLIfB9g2fDIGhoTQAxAk+KW3c6 Pv13y31mbk6/qv1E7XPlOcQoGORLnC1d/e23Co5zJsk7xH6UG0+ui6US2dSehjJfmoIK nLnQ== X-Gm-Message-State: AOAM531Gf59lklq8jCcqVl845vBpsElZAMxWOk2KZJKWcS37vliH0ZHo R9mO0th7ysJCEgkw/whQvnPjxileo+eT5NWIT3U= X-Google-Smtp-Source: ABdhPJzTBHGudtswdVjOv/kohCSxNEmAPYxe79aegEzHVelwoIZ1MAPiKSFqKfYKMcRYGi6x8FI6wrVIXxQkl/wO7iA= X-Received: by 2002:a05:6214:f2a:b0:45a:f7ca:f7c6 with SMTP id iw10-20020a0562140f2a00b0045af7caf7c6mr18383192qvb.26.1652761789726; Mon, 16 May 2022 21:29:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Peter Smith Date: Tue, 17 May 2022 14:29:33 +1000 Message-ID: Subject: Re: Skipping schema changes in publication To: Amit Kapila Cc: vignesh C , Bharath Rupireddy , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, May 17, 2022 at 1:56 PM Amit Kapila wrote: > > On Tue, May 17, 2022 at 7:35 AM Peter Smith wrote: > > > > Below are my review comments for v5-0002. > > > > There may be an overlap with comments recently posted by Osumi-san [1]. > > > > (I also have review comments for v5-0002; will post them tomorrow) > > > > ====== > > > > 1. General > > > > Is it really necessary to have to say "EXCEPT TABLE" instead of just > > "EXCEPT". It seems unnecessarily verbose and redundant when you write > > "FOR ALL TABLES EXCEPT TABLE...". > > > > If you want to keep this TABLE keyword (maybe you have plans for other > > kinds of except?) > > > > I don't think there is an immediate plan but one can imagine using > EXCEPT SCHEMA. Then for column lists, one may want to use the syntax > Create Publication pub1 For Table t1 Except Cols (c1, ..); > > > then IMO perhaps at least it can be the optional > > default except type. e.g. EXCEPT [TABLE]. > > > > Yeah, that might be okay, so, even if we plan to extend this in the > future, by default we will consider the list of tables after EXCEPT > but if the user mentions EXCEPT SCHEMA or something else then we can > use a different object. Is that sound okay? Yes. That is what I meant. > > > > > 3. General > > > > The ONLY keyword seems supported by the syntax for tables of the > > except-list (more on this in later comments) but: > > a) I am not sure if the patch code is accounting for that, and > > b) There are no test cases using ONLY. > > > > ~~~ > > > > Isn't it better to map ONLY with the way it can already be specified > in CREATE PUBLICATION? I am not sure what exactly is proposed and what > is your suggestion? Can you please explain if it is different from the > way we use it for CREATE PUBLICATION? > Yes, I am not proposing anything different to how ONLY already works for published tables. I was only questioning whether the patch behaves correctly when ONLY is specified for the tables of the EXCEPT list. I had some doubt about it because there are a few other review comments I wrote (e.g. in pg_dump.c), and also I did not find any ONLY tests, ------ Kind Regards, Peter Smith. Fujitsu Australia