Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fucqr-0004ok-4t for pgsql-admin@arkaria.postgresql.org; Tue, 28 Aug 2018 12:12:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fucqm-0007fa-A4 for pgsql-admin@arkaria.postgresql.org; Tue, 28 Aug 2018 12:12:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fucql-0007fT-Vr for pgsql-admin@lists.postgresql.org; Tue, 28 Aug 2018 12:12:00 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fucqj-0004ih-6l for pgsql-admin@postgresql.org; Tue, 28 Aug 2018 12:11:58 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id A939C214A1; Tue, 28 Aug 2018 12:11:55 +0000 (UTC) Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo02-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y0Sh_YRE-qn5; Tue, 28 Aug 2018 12:11:55 +0000 (UTC) Received: from [192.168.2.16] (unknown [8.39.228.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 42979211AB; Tue, 28 Aug 2018 12:11:54 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: How to get alerted automatically whenever a table structure is changed between Publisher and Subscriber in Logical Replication? From: Scott Ribe In-Reply-To: <1535446386936-0.post@n3.nabble.com> Date: Tue, 28 Aug 2018 06:11:52 -0600 Cc: pgsql-admin@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <394C9189-C119-4845-9D60-906C9018604C@elevated-dev.com> References: <1535435281653-0.post@n3.nabble.com> <7f636d45-36db-d87b-171a-519e21690574@anayrat.info> <1535446386936-0.post@n3.nabble.com> To: pavan95 X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk You could do that by logging DDL as suggested, and monitoring the log. You could also use event triggers: = https://www.postgresql.org/docs/current/static/event-triggers.html -- Scott Ribe scott_ribe@elevated-dev.com https://www.linkedin.com/in/scottribe/ > On Aug 28, 2018, at 2:53 AM, pavan95 = wrote: >=20 > So looking for a any table structure modifications(mainly alter DDL) = if > changed in a publisher I need to receive an alert(through any custom = script > or via a mail).