Re: [HACKERS] PL/Lang (was: Priorities for 6.6) - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: [HACKERS] PL/Lang (was: Priorities for 6.6)
Date
Msg-id 375D2CF0.552DFDE4@trust.ee
Whole thread Raw
In response to Re: [HACKERS] PL/Lang (was: Priorities for 6.6)  (Oleg Broytmann <phd@emerald.netskate.ru>)
List pgsql-hackers
Oleg Broytmann wrote:
> 
> Hello!
> 
>    VIM can also be compiled with builtin Python interpreter, and I had no
> problem compilng and using vim+python. Python is well known for its
> extending and embedding capabilities. mod_python (it is called PyApache) is
> small and elegant example of how to embed python, but of course it is not
> as powerful as mod_perl (one cannot touch Apache internals from mod_python,
> though author lead PyApache development this way).

Actually abou 1.5 years ago it used to allow access to internals, but 
seemingly nobody used it and so it was thrown out in later versions.

>    Yes, I am biased toward Python, but I cannot say "I recommend embed
> Python to construct PL/Python" - I have no time to lead the development,
> and I doubt there are many pythoners here (D'Arcy?).

I have contemplated it several times, but to be really useful we would 
first need a nice interface for returning "tables" from PL functions.

I suspect this is not something trivial to add ?

With it I could use PL/Python to make all kinds of external objects like
mailboxes
(both local and POP/IMAP/NNTP), conf files (/etc/passwd, pg_hba.conf),
DNS/LDAP/...
queries or any other nice things available through existing python
modules available 
to postgres queries.

-----------------
Hannu


pgsql-hackers by date:

Previous
From: Don Baccus
Date:
Subject: Re: [HACKERS] 6.6 items
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] 6.6 items