X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7761AD1B46B for ; Wed, 31 Dec 2003 12:51:16 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 77839-01 for ; Wed, 31 Dec 2003 08:50:29 -0400 (AST) Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by svr1.postgresql.org (Postfix) with SMTP id E28E8D1B44E for ; Wed, 31 Dec 2003 08:50:25 -0400 (AST) Received: from unknown (HELO europa.janwieck.net) (janwieck@68.80.245.191 with login) by smtp014.mail.yahoo.com with SMTP; 31 Dec 2003 12:50:29 -0000 Received: from Yahoo.com (pcp01341166pcs.wilog301.pa.comcast.net [68.80.245.191]) (authenticated) by europa.janwieck.net (8.11.6/8.11.6) with ESMTP id hBVCoNk02084; Wed, 31 Dec 2003 07:50:25 -0500 Message-ID: <3FF2C608.3090906@Yahoo.com> Date: Wed, 31 Dec 2003 07:50:16 -0500 From: Jan Wieck Organization: Home User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en,ru MIME-Version: 1.0 To: ivan Cc: pgsql-hackers@postgresql.org Subject: Re: cache in plpgsql References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=2.4 tagged_above=0.0 required=5.0 tests=IN_REP_TO, RCVD_FAKE_HELO_DOTCOM_2, REFERENCES, USER_AGENT_MOZILLA_UA X-Spam-Level: ** X-Archive-Number: 200312/803 X-Sequence-Number: 48707 ivan wrote: >as new know plpgsql has special cache which remember too long (event >non-existing tables (i mean old oid)) so i suggest to create same function >only in plpgsql which would clear this cache, or sth like this ? > >for ie, where i drop table i would do plpgsql_clear_cache (); >and when i will create one more time table with this same name plpgsql >will not remeber wrong oid > >possible ? > > You obviously did not bother to search the archives on this. This will not solve the problem since the "cache" you're talking about is per backend local memory. So if one backend modifies the schema, how does it cause all other to forgt? Since the same problem exists in general for everything that uses SPI, the solution lies in there. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #