Re: BUG #13960: plpython fails with certain function names - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #13960: plpython fails with certain function names
Date
Msg-id 3868.1455497399@sss.pgh.pa.us
Whole thread Raw
In response to BUG #13960: plpython fails with certain function names  (Jim.Nasby@BlueTreble.com)
Responses Re: BUG #13960: plpython fails with certain function names  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-bugs
Jim.Nasby@BlueTreble.com writes:
> If a Postgres function contains characters that are illegal for python
> identifiers, compilation fails. Error message is not very helpful either:

Hm, how much do we really care?  The example seems kinda artificial.

> One possibility is to simply strip out invalid characters[1].

No, because then you would get collisions, ie function names that look
different to PG would look the same to python.  Bad news.

(Actually, don't we have that issue anyway because of schemas?  I wonder
why we are exposing the PG name of the function to python at all.)

            regards, tom lane

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Standbys using commas in application_name cannot become sync nodes
Next
From: Jim Nasby
Date:
Subject: Re: BUG #13960: plpython fails with certain function names