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 1nKkHT-0007Cp-LA for pgsql-general@arkaria.postgresql.org; Thu, 17 Feb 2022 17:09:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nKkHS-00068G-IN for pgsql-general@arkaria.postgresql.org; Thu, 17 Feb 2022 17:09:22 +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 1nKkHS-000687-8A for pgsql-general@lists.postgresql.org; Thu, 17 Feb 2022 17:09:22 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nKkHP-0003Oj-MT for pgsql-general@lists.postgresql.org; Thu, 17 Feb 2022 17:09:21 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 954413201DA2; Thu, 17 Feb 2022 12:09:18 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 17 Feb 2022 12:09:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=wETPu/7G/DtXfTpp7fZ1EisJ+SAAN2V9l35jwC09y14=; b=oRWjeIjM UnZXpw2k/mtiABdIC7WcPpbzz2OshuphpHxQFWN9ALbCv0oi6uhYOhDi+cPEB5Jp 0HixSUGrCFd7QackcBZGWk8J89j6tIIm6jF/3eFYqeriHA/BbBrgYuNyW93NzA/R uHMozX5IGEMgzSALPJH7s0RAnOAnWfS6H4QR0FWtiqeRDALw3bpoVaG4xn9Ekt9d UofwxVVBAzjhEMnWtMWauFhjJ2BY/bdeH+mo9zOZQhzrvR1+0K3+xz02Kt6o41ek cSt1tQMWFsWLellzA7qa2lR04iKR/rY7QvqEhlFA6tBbbVBpUkzyxjpEhcAVVjXG 1pmF9tDklMT9cQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrjeekgdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepudejveejffejveduudetvdekieeuiedtvdeileefkeevjedu feeguedvjefhueelnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgv rhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 17 Feb 2022 12:09:17 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DD7C42A07F5; Thu, 17 Feb 2022 14:09:12 -0300 (-03) Date: Thu, 17 Feb 2022 14:09:12 -0300 From: Alvaro Herrera To: Bryn Llewellyn Cc: pgsql-general list Subject: Re: alter function/procedure depends on extension Message-ID: <202202171709.6ncyrg55ckot@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7C2D01B4-AD32-48DB-B5FA-6FFBC312ECB2@yugabyte.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Feb-17, Bryn Llewellyn wrote: > qu. 1. What is the use-case for "alter function/procedure depends on extension"? Suppose you have an extension that implements change auditing for tables, which works by creating triggers on the audited tables. You enable auditing for specific tables by calling one of the extension's function; this function creates a trigger on the table. The design idea was that if you drop the auditing extension, then those triggers should be gone too. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "I'm always right, but sometimes I'm more right than other times." (Linus Torvalds)