pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jan Wieck <janwieck@yahoo.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
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: Mon, 25 Mar 2002 19:35:07 -0500
Message-ID: <5158.1017102907@sss.pgh.pa.us> (raw)
In-Reply-To: <200203252136.g2PLaEg25650@saturn.janwieck.net>
References: <200203252136.g2PLaEg25650@saturn.janwieck.net>

Jan Wieck <janwieck@yahoo.com> writes:
>     This  is  somehow connected to the temporary view discussion,
>     as it  needs  the  same  detection  if  a  query  depends  on
>     temporary  objects.  As soon as we have a detection mechanism
>     for it, I can modify PL/pgSQL not to save prepared plans  for
>     these statements.

Actually, I don't think plpgsql should make any special discrimination
against temp tables; it should be able to re-use a query plan for
exactly as long as the temp table exists.  But I agree that we need
a mechanism for tracking query-plan dependencies for this to happen.

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <5158.1017102907@sss.pgh.pa.us>
Permalink:  ../5158.1017102907@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5158.1017102907@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, janwieck@yahoo.com, pgman@candle.pha.pa.us, datactrl@tpg.com.au
  Subject: Re: call the same pl/pgsql procedure twice in the same connection
  In-Reply-To: <5158.1017102907@sss.pgh.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