From: | elein <elein(at)varlena(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Kevin Jacobs <jacobs(at)penguin(dot)theopalgroup(dot)com>, pgsql-hackers(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org |
Subject: | Re: PlPython |
Date: | 2003-06-23 21:42:42 |
Message-ID: | 200306231442.42468.elein@varlena.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
I thought there would be a relatively clear way
to alias them both to the same language library for
a release or two. But I see your point on transitioning.
Clear notice is really important.
plpython should be phased out if it is not replaced
within a release or two.
If only the change could be transparent to those
people who are not using any untrusted features.
Maybe it is better to break everyone's plpython functions
in 7.4. That would certainly make sure everyone heard
of the change from trusted to untrusted. But explanations
of what exactly that means should also be included in the
release notes.
elein
PS: I've built and tested the plpython patch against
7.3.2 and am happy it does not affect the features I count
on. I'd do it against the development release but
I can't get it to build (for other reasons).
On Monday 23 June 2003 13:53, Tom Lane wrote:
> elein <elein(at)varlena(dot)com> writes:
> > For 7.4 (which I expect is the patch's target) it might be
> > best to make both names point to the same thing with a
> > clear release note that says that they are the same thing
> > and that plpython[u] is now untrusted.
>
> I don't know any way to actually do that, though. If we put two entries
> in pg_language then functions created in plpython will stay associated
> with that entry. That'd probably be the worst of all possible worlds,
> since a person looking at pg_language would quite reasonably assume that
> plpython was still trusted and the untrusted plpythonu was just an
> addition. (Especially if he happened to know that such an addition was
> planned long ago.) You could shoot yourself in the foot pretty badly
> with such a misunderstanding :-(
>
> The behavior that I think would be most useful would be to automatically
> transpose CREATE FUNCTION ... LANGUAGE "plpython" into CREATE FUNCTION
> ... LANGUAGE "plpythonu". Which we could do with an ugly hack in CREATE
> FUNCTION (ugly, but no worse than things we've done to index opclass
> names, for example). But it could be too confusing.
>
> regards, tom lane
>
>
--
=============================================================
elein(at)varlena(dot)com Database Consulting www.varlena.com
PostgreSQL General Bits http:/www.varlena.com/GeneralBits/
"Free your mind the rest will follow" -- en vogue
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-06-23 22:21:07 | Re: [HACKERS] PlPython |
Previous Message | Dann Corbit | 2003-06-23 21:38:28 | NIST test defects |
From | Date | Subject | |
---|---|---|---|
Next Message | Lamar Owen | 2003-06-23 21:59:48 | Re: Two weeks to feature freeze |
Previous Message | Josh Berkus | 2003-06-23 21:14:31 | Re: Two Phase Commit WAS: Re: Two weeks to feature freeze |