Re: Trigger SQL script execution after DROP EXTENSION - Mailing list pgsql-sql

From Adrian Klaver
Subject Re: Trigger SQL script execution after DROP EXTENSION
Date
Msg-id 53021C12.1080001@gmail.com
Whole thread Raw
In response to Trigger SQL script execution after DROP EXTENSION  (amul sul <sul_amul@yahoo.co.in>)
List pgsql-sql
On 02/16/2014 09:52 PM, amul sul wrote:
> Hello ALL,
>
> I need little help regarding DROP EXTENSION.
>
> Can it will be possible to execute some SQL command automatically after
> DROP EXTENSION ?
>
> In my EXTENSION, I am changing some pg_catalog tuples, I want to restore
> it when my EXTENSION is dropped.
>
> Thanks in advance, any help or suggestion is appreciated.

Not sure what version you are on, but in 9.3+ there are EVENT TRIGGERS:

http://www.postgresql.org/docs/9.3/interactive/event-triggers.html

> Regards,
>
> Amul Sul


-- 
Adrian Klaver
adrian.klaver@gmail.com



pgsql-sql by date:

Previous
From: amul sul
Date:
Subject: Trigger SQL script execution after DROP EXTENSION
Next
From: "karsten"
Date:
Subject: include ids in query grouped by multipe values