Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wnGdx-000CFv-0i for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jul 2026 14:12:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wnGdv-0046vg-2V for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jul 2026 14:12:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wnGdv-0046vY-1a for pgsql-hackers@lists.postgresql.org; Fri, 24 Jul 2026 14:12:51 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wnGdr-000000002Y8-1Fui for pgsql-hackers@lists.postgresql.org; Fri, 24 Jul 2026 14:12:50 +0000 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-84830c774a0so429383b3a.1 for ; Fri, 24 Jul 2026 07:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784902365; x=1785507165; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=Hk+r+nmzxYZIya3uOCQN0K1UUpNKkUt0g9K2zqefBuc=; b=U3v9hGMxtk2T0i+/CWj+z6+a798eYv1EYNHSTXntwoAXKGKDIamszUx096Y910F5jz ZCYaEH8sZEYefIQ7F2F2M8p7rOtTzd7knf6wxAqQOv9RNXr04a8B1+QPfX5wku4jaNZ6 z9iMDMD+hc+Ut0Hud1cuy8quBPYldf2AdyKSA8rBQoVm/kpCpVYIfy7VKrE1KJ9/qNNs bLqTKTKLgwxSp4UuJZvFUlOI8qiCKuBpSu4ltqc8l3mqLBvtjoWpUInwQowTGJN4vuQu y91B4GzfnDbxA/KB56z7DvVK1Yxha5AcZ7NrQSw1iR7gXequnRJud/RF9IbaEk8G8cXW kepQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784902365; x=1785507165; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Hk+r+nmzxYZIya3uOCQN0K1UUpNKkUt0g9K2zqefBuc=; b=VcYnwArqjzMlawFhhz/zfBCy68SqLcQ2tP+wkCGaIYst+WKNqxlCkJ9H9mx9O5khFw lgKwU0qBccM+bcz7x00KWDApZzh4EUl72djbuV16HPHZEFNBD1iomNIsVQ+a7DefsGr+ zQrOYHGjmbjEeL7Vl2lDjlj0q5m9U0Dz3esnPZwTRt+EJaUKddEbTG9Oweel6qRccbY8 9AledtSQqfQZOAoSyN8mlPknStznHTJdkbz+PAWCc74eHP+FbVlM1QzXdF7/9H3RxWoY UcHelEiZYHTUNeQPOza+X2fVrwSwAOuGqX/b355Uc3J2BQESkXWC8VPPXtvZpqMG1XFB 0o4A== X-Gm-Message-State: AOJu0Yxi8Cyo0/1hHK6ej72ZLt9Zpe9/3xvUGFoVG/18vMp2M0W58txV Br1wszgAtPOXb5ZXGmqRQcQ5S4jeFhOjt7tZ5neCExmzO2wXGshrhkiF X-Gm-Gg: AR+sD13G/ECRYfvWpUDsISDOPckfIXi6LtwZyBeYsMWkGOoWQn9IPSD+pi7ZC/d8OG+ gDbmdkuOk4uqH5kNQWGIfMyJkCbljaaFCrigMHEbSsU5LoLyPvvAZlPu4rZQfB87QCL8t2B/SoT MYIjhFrGHyxKYTsII1i1VixA3KICybW8X6RtDPOVpNh71WeXuLr7aZDbO36EgPr7FsgE+nSreiW pQBlCVLEmQk5VYpJFbhLueNFR5BXr+rUszB+Zjlqib4UuQ/Z/rU7WyvCROcT5ALDRzNzW/Wb9bV g+SCLjlVEUPd80uBBdYxkd/83lpj2ugJMDcCwhcTWRlI4qD6nxGf4R92mokQqXndijxHb8K0JoH 8BUYmRPsrZXXmDGsLQi/k7IW9Iv0mv4VO5u1Js59Wd1sf7c0viVIMvaeIJkAIOGTLYVPRVyc2wv st4fz7iqoe8Vw0u8qAEq+FXA== X-Received: by 2002:a05:6a21:504:b0:3b3:4406:202c with SMTP id adf61e73a8af0-3c44af6d81emr8755885637.10.1784902364724; Fri, 24 Jul 2026 07:12:44 -0700 (PDT) Received: from smtpclient.apple ([185.135.79.161]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-314bc57ae17sm57988eec.22.2026.07.24.07.12.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2026 07:12:43 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: Collect ALTER PUBLICATION commands for event triggers From: Chao Li In-Reply-To: Date: Fri, 24 Jul 2026 22:12:07 +0800 Cc: PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Fujii Masao X-Mailer: Apple Mail (2.3864.600.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jul 24, 2026, at 21:54, Fujii Masao wrote: >=20 > On Fri, Jul 24, 2026 at 5:38=E2=80=AFPM Chao Li = wrote: >> Both v1-0001 and v1-0002 look good to me. >=20 > Thanks for the review! >=20 >=20 >> While reviewing 0002, I noticed another suspicion. = AlterPublicationAllFlags() directly updates the pg_publication tuple but = doesn=E2=80=99t call InvokeObjectPostAlterHook(). This seems = inconsistent with AlterPublicationOptions() and = AlterPublicationOwner_internal(), which invoke that hook after altering = the publication. >>=20 >> As this is a separate issue from this patch, should I start a new = thread? This seems an oversight of 493f8c6439c. >=20 > Good catch! Although it's a separate issue, I think it's fine to > discuss it here since it's a bit related and a small change. >=20 > I put together a patch to invoke the post-alter hook for > ALTER PUBLICATION SET ALL. It's attached as patch 0003 > in my reply to Ian upthread. >=20 Yeah, that=E2=80=99s better. Thanks for adding 0003. I will review it = next Monday. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/