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 1vND9w-00EB0o-2i for pgsql-general@arkaria.postgresql.org; Sun, 23 Nov 2025 16:41:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vND9t-00F1Wo-1B for pgsql-general@arkaria.postgresql.org; Sun, 23 Nov 2025 16:41:53 +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 1vND9s-00F1W6-1i for pgsql-general@lists.postgresql.org; Sun, 23 Nov 2025 16:41:53 +0000 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vND9p-0015VO-2a for pgsql-general@lists.postgresql.org; Sun, 23 Nov 2025 16:41:52 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 7C1701D0007A; Sun, 23 Nov 2025 11:41:46 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Sun, 23 Nov 2025 11:41:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1763916106; x=1764002506; bh=QfZkhk6J8AroQSgcHMwuecz6KIwdEFZiqbmY5sKuHaw=; b= EQQcCa1T2O/03+0vR8mT0oujSAr9vZYQwCva0xZUrcN6IAKpr2eXhw+xmDi6rW8K SUr1kNryIw46HFquy25akqL3Te5eHxDaQ6r4MERnaWGqsXxHZLsXh234yHz4jyFY qv0ARUs+HGbyaS0Kk7ePOdKVSlgJL7NuwlEu+pthlDjfeQcOUHCzzO6mEJmb+WlJ P+5CF2IqytqbwjLCxkaRZcxcPJ3ZB+dnvgLvpnOsDfOnFM2X1mDK7I/haTqC/ofC JjCe4GfnTGd50BGxgNwfuSICa3NQlIp3XilUbyxiQS+oqeLPzp0yEoIBvYsEpCRH +Dc4HZW/eFGrNZTtN8I+uQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1763916106; x=1764002506; bh=Q fZkhk6J8AroQSgcHMwuecz6KIwdEFZiqbmY5sKuHaw=; b=I4CzXrt7DE0igC67O I4SwqC0R4DP3n8bIErgT5hNWQkt8hXF+LzhKFzEZuYf1F8SAGJbuxipmXhshytXi JpDS6s2+oLcGEGc0iOPA+kQmDH5bhMKMij7F9DR6QBnqBSCHzhWxs2bpQg6P4j0c FD3kJrQXU/Qcv0TiJrNumCRyHIBuPrrzDvsyntObZGm1jRexa0RJHtzfmO+TOqtz CYBCbAH/aHI2JFTeLA0BgYBKRffnv4zSBRIH+9+0eIXkSVwvqwVEweef/ZNifnyD J1F6pElM1lTSm2rkGXcGhsnTX31qedUr36AL+2O2vxiPT5I743sEIBhg9Ihv4bqc qy9mA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvfeeivdefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpeefkedukeetvedugeffvddujeethfeigfeuheetfefhudel vddtieevuddvteefvdenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpdhgih hthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprh gtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehikhhorhhothdt udesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlih hsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 23 Nov 2025 11:41:45 -0500 (EST) Message-ID: Date: Sun, 23 Nov 2025 08:41:44 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ODBC fails to recognize event trigger removal To: Igor Korot , "pgsql-generallists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/23/25 04:44, Igor Korot wrote: > Hi, ALL, > > [code] > postgres=# CREATE OR REPLACE FUNCTION __watch_schema_changes() RETURNS > event_trigger LANGUAGE plpgsql AS $$ BEGIN NOTIFY tg_tag; END; $$; > CREATE FUNCTION > postgres=# CREATE EVENT TRIGGER schema_change_notify ON > ddl_command_end WHEN TAG IN('CREATE TABLE', 'ALTER TABLE', 'DROP > TABLE', 'CREATE INDEX', 'DROP INDEX') EXECUTE PROCEDURE > __watch_schema_changes(); > CREATE EVENT TRIGGER > postgres=# DROP EVENT TRIGGER schema_change_notify CASCADE; > DROP EVENT TRIGGER > postgres=# \q > igor@WaylandGnome ~/unixODBC-2.3.12 $ isql postgres postgres wasqra123 > +---------------------------------------+ > | Connected! | > | | > | sql-statement | > | help [tablename] | > | echo [string] | > | quit | > | | > +---------------------------------------+ > SQL> CREATE OR REPLACE FUNCTION __watch_schema_changes() RETURNS > event_trigger LANGUAGE plpgsql AS $$ BEGIN NOTIFY tg_tag; END; $$; > SQLRowCount returns -1 > SQL> CREATE EVENT TRIGGER schema_change_notify ON ddl_command_end WHEN > TAG IN('CREATE TABLE', 'ALTER TABLE', 'DROP TABLE', 'CREATE INDEX', > 'DROP INDEX') EXECUTE PROCEDURE __watch_schema_changes(); > [ISQL]ERROR: Could not SQLExecute > SQL> quit > igor@WaylandGnome ~/unixODBC-2.3.12 $ > [/code] > > Server version 16.2 > Driver version 11.1 > > Anybody aware of this? 1) There is a Postgres list dedicated to the ODBC driver: https://www.postgresql.org/list/pgsql-odbc/ You should probably ask these sort of questions there. 2) I have to believe the below is the issue: Server version 16.2 Driver version 11.1 Given that the most recent current driver is REL-17_00_0006 and from here: https://github.com/postgresql-interfaces/psqlodbc/tree/REL-11_01_0000 The 11.1 driver was released 6 years ago which predates the release of Postgres 16 by ~4.5 years. > > Thank you. > > -- Adrian Klaver adrian.klaver@aklaver.com