Re: Extension Facility - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: Extension Facility
Date
Msg-id 8E9CD7B2-5A39-4B28-A53F-94B984E72B1D@kineticode.com
Whole thread Raw
In response to Re: Extension Facility  (Dimitri Fontaine <dfontaine@hi-media.com>)
Responses Re: Extension Facility
List pgsql-hackers
On Jul 23, 2009, at 2:11, Dimitri Fontaine <dfontaine@hi-media.com>  
wrote:

> Well the problem with that is if for example I define foo() and bar()
> functions in my extension, and the user also has a foo() function in  
> his
> own stuff (possibly lying in public, say).
>
> Now if in my extenion in function bar() I call foo(), how do I make  
> sure
> I'm calling my extension's foo()?

Part of the behavior of CREATE EXTENSION would be to automatically  
schema-qualify references to objects  in the extension. Or perhaps  
extension authors would need to use some sort of variable for the  
schema that would be properly resolved when CREATE EXTENSION installed  
an extension.

Those are the first ideas that come to kind for me, anyway.

Best,

David 


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Higher TOAST compression.
Next
From: "David E. Wheeler"
Date:
Subject: Re: extension facility (was: revised hstore patch)