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 1n7cGH-0000CA-Na for pgsql-general@arkaria.postgresql.org; Wed, 12 Jan 2022 11:57:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n7cGG-0005Z2-Jv for pgsql-general@arkaria.postgresql.org; Wed, 12 Jan 2022 11:57:52 +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 1n7cGG-0005Ys-0s for pgsql-general@lists.postgresql.org; Wed, 12 Jan 2022 11:57:52 +0000 Received: from mx4.stadt-zuerich.ch ([194.56.33.13]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7cGC-0000qO-Sx for pgsql-general@lists.postgresql.org; Wed, 12 Jan 2022 11:57:50 +0000 IronPort-SDR: 1q+6fosgmpB+YxRpS6YllyoHkUZT0FI/CBlP6PqbNTKOoTYw4jpNAiABd8LwtRdW3zgb8HQhGb 2Vt4EvGr0Ml2uq5gOHQ17uplQ/ljrS69rIrCYD1hQiuEaH0UD+wfiC7WmNnZSUIpPGXx/Y8Kil ZCkVtrSrV9dWUrUJELjBBRtgF9IWkxj7bIvoKhEQSiPpFNJPMDHtm1F55r4/E3YRlj4CWmdulG lG8pS/99FmFjDGkS6q2SprChulcxapxYagED6mQEDMsMrLw0ZxIG20ViVj21husSLx4ekMC/o+ 1g8= X-IronPort-AV: E=Sophos;i="5.88,282,1635199200"; d="scan'208,217";a="23651387" Received: from unknown (HELO SZHM27373.global.szh.loc) ([10.7.49.60]) by mx4.prm.szh.zone with ESMTP/TLS/AES256-GCM-SHA384; 12 Jan 2022 12:57:45 +0100 Received: from SZHM27370.global.szh.loc (10.7.50.50) by SZHM27373.global.szh.loc (10.7.49.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 12 Jan 2022 12:57:45 +0100 Received: from SZHM27370.global.szh.loc ([fe80::2839:247b:c8d4:9198]) by SZHM27370.global.szh.loc ([fe80::2839:247b:c8d4:9198%10]) with mapi id 15.01.2176.012; Wed, 12 Jan 2022 12:57:45 +0100 From: "Zwettler Markus (OIZ)" To: "pgsql-general@lists.postgresql.org" Subject: postgres event trigger workaround Thread-Topic: postgres event trigger workaround Thread-Index: AdgHqwyLbjKP7NqWTi+jFpBRMKA+7A== Date: Wed, 12 Jan 2022 11:57:45 +0000 Message-ID: Accept-Language: de-CH, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.7.48.250] Content-Type: multipart/alternative; boundary="_000_c32ee50d6e3b4c58b08fccccf0ade41dzuerichch_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_c32ee50d6e3b4c58b08fccccf0ade41dzuerichch_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, PG event triggers are not firing on CREATE ROLE, CREATE DATABASE, CREATE TA= BLESPACE by definition (would be nice if they do). Is there any workaround to react with ddl_command_start behavior on such an= event? Thanks, Markus --_000_c32ee50d6e3b4c58b08fccccf0ade41dzuerichch_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

PG e= vent triggers are not firing on CREATE ROLE, CREATE DATABASE, CREATE TABLES= PACE by definition (would be nice if they do).

 

Is t= here any workaround to react with ddl_command_start behavior on such an eve= nt?

 

Than= ks,

Mark= us

 

 

 

 

 

 

--_000_c32ee50d6e3b4c58b08fccccf0ade41dzuerichch_--