Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIJUz-0007WV-Js for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2019 21:27:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iIJUy-0000IP-FF for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2019 21:27:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIJUy-0000IB-4T for pgsql-general@lists.postgresql.org; Wed, 09 Oct 2019 21:27:56 +0000 Received: from [66.111.4.25] (helo=out1-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIJUw-0007sP-7q for pgsql-general@postgresql.org; Wed, 09 Oct 2019 21:27:55 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 0317A21FE9; Wed, 9 Oct 2019 17:27:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 09 Oct 2019 17:27:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=U oLwryf4bDUfkWlp4ud4g9mfaLIt7QChrboqaGPxgv8=; b=3Uga809LJcWYjHLuu Ib6fZSzltPlXI4h/ouJX+GJTA4Dhk3qPe1xsJRViCIVVd5xcxrMbtbo+s5bH2kGc aOwlehYlCtFK3ahwLANPis3I0U4Txqvd5+xQYwyxMn0RU/3J1YVi5dxrRyY0AI6L sTq4tHu8z+Z7Segakg7owa6S1gay4sh311mstVEiV5xdmz7sru4cVpWEBVJWlyh1 HONAjk/SerREoQECkkz2542jW31xeitYUfRq7oFiSWwXDNcJac2uA4QHCM95fmJP GnT/ca/gN4nypMxwd6QyIye16UdIk5WE1ZJR33yzZZSywonutGssEnwrQFdyCrLD +BxXg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=UoLwryf4bDUfkWlp4ud4g9mfaLIt7QChrboqaGPxg v8=; b=qlBFM19vG+aOeXQUbnO3NlwplYttuak+7lHtk1UEiEgYPTMP9sMGTrT4B ck8MYuD8XePjeweyU0nJxaZAffkCs1+SjvozQSLQB95Q8bMUe8y+HGyZdxENgLuH j7nmJ6Qgq90Lw/79DIjoANE2uBNeGv0xYNEgbOZ6/92yMk1TFgbapvbkBdr+x5vP GuPPS0VB/d8jDWpMsIulBupo7xhrcaaAR8aHevbSyWwD9aK+rv6UyKbh4IF+YaXd jekAQQLyF+NFRG/MS4Dg492n4sXhpgL+V6J68XfG7MK9u1H6voc9uN4YlXVZpHUL 5Z3R4Fndq1jHZ9jhiE+FDJg/In6bw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedriedugddugeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucfkphepjeefrddvfeelrdduudejrddvfeeknecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsth gvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 165088005A; Wed, 9 Oct 2019 17:27:31 -0400 (EDT) Subject: Re: Event Triggers and GRANT/REVOKE To: Miles Elam , PG-General Mailing List References: From: Adrian Klaver Message-ID: <80a52d0f-497b-daf5-c1b4-40dc1fad70d0@aklaver.com> Date: Wed, 9 Oct 2019 14:27:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.25 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/9/19 1:56 PM, Miles Elam wrote: > GRANT and REVOKE trigger on a ddl_command_end event trigger but don't > provide any information beyond whether it was a table, schema, function, > etc. that was affected. No object IDs or the like are included. How > would you find out which table had its ACLs modified? What is the code for trigger and function? > > Also, why do grants and revokes have an object_type of 'TABLE' instead > of lower case names like 'table' for all other event types? > > > Thanks, > > Miles Elam > -- Adrian Klaver adrian.klaver@aklaver.com