From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Jan Wieck <janwieck@yahoo.com>
Cc: jack <datactrl@tpg.com.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: call the same pl/pgsql procedure twice in the same connection
Date: Thu, 18 Apr 2002 13:22:14 -0400 (EDT)
Message-ID: <200204181722.g3IHMEc21830@candle.pha.pa.us> (raw)
In-Reply-To: <200204181643.g3IGhUw14564@saturn.janwieck.net>
Jan Wieck wrote:
> 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.
I was merely proposing that preventing caching of functions ueing temp
tables may be easier than trying to invalidation them on temp table
destruction.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: pgman@candle.pha.pa.us, janwieck@yahoo.com, datactrl@tpg.com.au
Subject: Re: call the same pl/pgsql procedure twice in the same connection
In-Reply-To: <200204181722.g3IHMEc21830@candle.pha.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox