Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by postgresql.org (Postfix) with SMTP id 522ED475F80 for ; Thu, 18 Apr 2002 12:44:22 -0400 (EDT) Received: from psc.progress.com (HELO saturn.janwieck.net) (janwieck@192.233.92.200 with login) by smtp.mail.vip.sc5.yahoo.com with SMTP; 18 Apr 2002 16:44:27 -0000 Received: (from wieck@localhost) by saturn.janwieck.net (8.11.2/8.11.2) id g3IGhUw14564; Thu, 18 Apr 2002 12:43:30 -0400 From: Jan Wieck Message-Id: <200204181643.g3IGhUw14564@saturn.janwieck.net> Subject: Re: call the same pl/pgsql procedure twice in the same connection In-Reply-To: <200204172207.g3HM74D09071@candle.pha.pa.us> from Bruce Momjian at "Apr 17, 2002 06:07:04 pm" To: Bruce Momjian Date: Thu, 18 Apr 2002 12:43:30 -0400 (EDT) Cc: Jan Wieck , jack , pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200204/231 X-Sequence-Number: 7495 Bruce Momjian wrote: > > Jan, instead of doing cache invalidation to fix temporary tables, can we > disable cached plans for functions that use temporary tables? I was thinking of a different approach. Enhancing the SPI manager to detect if a plan uses temporary objects and to remember the original querystring in the SPI_plan. Having callbacks when temp object beeing destroyed into the SPI manager, causing it to reparse and plan on the next call to SPI_execp() would do it for everything that uses SPI. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #