Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TypJW-0001wE-Oj for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Jan 2013 19:51:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TypJV-0004kS-KF for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Jan 2013 19:51:49 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TypJU-0004kN-TW for pgsql-bugs@postgresql.org; Fri, 25 Jan 2013 19:51:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TypJT-0006wF-Be for pgsql-bugs@postgresql.org; Fri, 25 Jan 2013 19:51:48 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r0PJpdZF001567; Fri, 25 Jan 2013 14:51:39 -0500 (EST) From: Tom Lane To: Andres Freund cc: Sandro Santilli , pgsql-bugs@postgresql.org, peter_e@gmx.net Subject: Re: cache lookup failed from empty plpythonu function In-reply-to: <20130125132025.GD4289@awork2.anarazel.de> References: <20130124140336.GJ3157@gnash> <20130124141751.GB21296@awork2.anarazel.de> <19721.1359045633@sss.pgh.pa.us> <20130125132025.GD4289@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 25 Jan 2013 14:20:25 +0100" Date: Fri, 25 Jan 2013 14:51:39 -0500 Message-ID: <1566.1359143499@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 Andres Freund writes: > Its slightly more complex than just making it one hash table with an > extended key. When validating a trigger function we don't have a > relation to do the cache lookup. I chose to handle that case by not > doing a cache lookup at all in that case which imo is a sensible > choice. Seems fair. However ... why is it safe for PLy_procedure_create to be using the same name for multiple instances of a trigger function? Should we not be including the rel OID when building the procName string? 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