Slythe & Database PL initialization

Adrian Klaver aklaver at comcast.net
Mon May 29 18:53:37 UTC 2006


On Sunday 28 May 2006 01:06 pm, James William Pye wrote:
> Greets,
>
> For Slythe 0.2(the remote console), I'm thinking about implementing a
> convenient way to initialize the PL inside a database. Much like what
> createlang does for the standard PLs. I've been wanting to do something
> like this, but I never wanted to spawn a completely new script that hangs
> around for that sole purpose, which is why I want to spin this capability
> into the 'pg_python' command as it seems like it might fit.
If I understand correctly this means you would use pg_python to do the job of 
createlang  python dbname.
>
> [While the remote console is still in mind]
>
> Slythe currently creates the necessary functions for operation at
> connection time, and subsequently drops those functions at disconnect. I
> did this as I've always hated seeing "droppings" from other applications.
> However, I think the extra round trip and function creation have a price
> that tends to be a nuisance, so I'm considering making a permanent spot for
> these function[s] in pg_catalog or a "python-teop" namespace.
>
> Thoughts?
Sounds good to me.
> _______________________________________________
> Python-general mailing list
> Python-general at pgfoundry.org
> http://pgfoundry.org/mailman/listinfo/python-general

-- 
Adrian Klaver	
aklaver at comcast.net


More information about the Python-general mailing list