Re: Quick Extensions Question

From: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>, "David E(dot) Wheeler" <david(at)kineticode(dot)com>, pgsql-hackers Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Quick Extensions Question
Date: 2011-03-03 15:21:48
Message-ID: m2vd00z0tv.fsf@2ndQuadrant.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
>> Meanwhile, is it possible to have CREATE LANGUAGE internally register an
>> extension? It's a kludge but I somehow though I'd mention it.
>
> Hmmm ... it definitely is a kluge, but ...
>
> You'd need to work out how the CREATE OR REPLACE and DROP cases would
> work.

Maybe the fever ain't gone far enough, but I'd just do nothing in the
first case and internally cascade to the extension in the second case.
In fact internally the drop case would be redirected on the extension
and the dependencies would get rid of the PL, right?

--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-03-03 15:31:14 Re: Quick Extensions Question
Previous Message Alvaro Herrera 2011-03-03 15:16:56 Re: WAL segments pile up during standalone mode