Extensions vs. shared procedural language handler functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Extensions vs. shared procedural language handler functions
Date: 2011-03-05 00:58:44
Message-ID: 27364.1299286724@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

So while hacking away at the PLs-as-extension changes I ran across an
unforeseen complication. plperl and plpython use the same C function
entry points for both their trusted and untrusted variants. This is
problematic for making them into extensions, since we need the two
language variants to be different extensions (else you could not install
just one of them) and the extensions can't both own the same handler
function.

I can imagine that someplace down the road we might want to allow
multiple extensions to own the same SQL object; I know that RPMs can
share ownership of files, for comparison. But today is not that day.

The only easy fix I can see at the moment is to arbitrarily create two
pg_proc entries --- they can both point at the same C function, but
there need to be two of 'em.

Anyone have a different answer?

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Urbański 2011-03-05 01:19:07 Re: Extensions vs. shared procedural language handler functions
Previous Message Simon Riggs 2011-03-04 22:29:15 Re: wrapping up this CommitFest (was Re: knngist - 0.8)