Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aV7Md-00035J-Ev for pgsql-bugs@arkaria.postgresql.org; Mon, 15 Feb 2016 00:50:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aV7Mc-0004rv-8n for pgsql-bugs@arkaria.postgresql.org; Mon, 15 Feb 2016 00:50:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aV7Mb-0004rj-Cm for pgsql-bugs@postgresql.org; Mon, 15 Feb 2016 00:50:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aV7MY-000424-UL for pgsql-bugs@postgresql.org; Mon, 15 Feb 2016 00:50:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u1F0nxdh003869; Sun, 14 Feb 2016 19:49:59 -0500 From: Tom Lane To: Jim.Nasby@BlueTreble.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13960: plpython fails with certain function names In-reply-to: <20160215001447.2605.36302@wrigleys.postgresql.org> References: <20160215001447.2605.36302@wrigleys.postgresql.org> Comments: In-reply-to Jim.Nasby@BlueTreble.com message dated "Mon, 15 Feb 2016 00:14:47 +0000" Date: Sun, 14 Feb 2016 19:49:59 -0500 Message-ID: <3868.1455497399@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs