pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Bryn Llewellyn <bryn@yugabyte.com>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: alter function/procedure depends on extension
Date: Thu, 17 Feb 2022 14:09:12 -0300
Message-ID: <202202171709.6ncyrg55ckot@alvherre.pgsql> (raw)
In-Reply-To: <7C2D01B4-AD32-48DB-B5FA-6FFBC312ECB2@yugabyte.com>

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)





view thread (18+ messages)  latest in thread

Message-ID: <202202171709.6ncyrg55ckot@alvherre.pgsql>
Permalink:  ../202202171709.6ncyrg55ckot@alvherre.pgsql/
Also on:    postgresql.org/message-id/202202171709.6ncyrg55ckot@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: alvherre@alvh.no-ip.org, bryn@yugabyte.com
  Subject: Re: alter function/procedure depends on extension
  In-Reply-To: <202202171709.6ncyrg55ckot@alvherre.pgsql>
  References: <7C2D01B4-AD32-48DB-B5FA-6FFBC312ECB2@yugabyte.com> <202202171709.6ncyrg55ckot@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox