Re: DROP EXTENSION - Mailing list pgsql-docs

From Tom Lane
Subject Re: DROP EXTENSION
Date
Msg-id 12382.1466533609@sss.pgh.pa.us
Whole thread Raw
In response to Re: DROP EXTENSION  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: DROP EXTENSION
Re: DROP EXTENSION
List pgsql-docs
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Right; mschwan wrote private email to indicate that the function in
> question is:

> CREATE OR REPLACE FUNCTION public.f_unaccent(text)
>   RETURNS text AS
> $$
>   select public.unaccent('public.unaccent', $1)
> $$
>   LANGUAGE sql IMMUTABLE;

> so when the unaccent extension is dropped, this function remains (of
> course) but it stops working.

Ah, I kind of suspected that: the issue is that we don't analyze function
bodies to detect dependencies therein.  In a perfect world we would, but
there are daunting obstacles in the way.

            regards, tom lane


pgsql-docs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: DROP EXTENSION
Next
From: Alvaro Herrera
Date:
Subject: Re: DROP EXTENSION