From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Jan Wieck <janwieck(at)yahoo(dot)com> |
Cc: | jack <datactrl(at)tpg(dot)com(dot)au>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: call the same pl/pgsql procedure twice in the same connection |
Date: | 2002-04-24 00:36:42 |
Message-ID: | 200204240036.g3O0agV08359@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Jan Wieck wrote:
> you are really good at making things sound simple by stopping
> half way through.
Sure. How do you think I got so far. :-)
> Your assumption is exactly my "detect if a plan uses
> temporary objects". No go on, what exactly are you doing with
> the information that the plan uses a temp table?
If it uses a temp table, run the plan and discard it, don't save the
plan in the cache.
> And BTW, since you are the one who invented temp tables, how
> does someone detect a temp table?
You have to call a macro on the relnames used in the plan. Before
schemas, it was just a macro. Now that Tom has them in schemas, I am
not sure how to detect them, but I assume they are in a separate schema.
Looks like he created FindTempRelations() that returns a list of temp
relations.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Rajesh Kumar Mallah | 2002-04-24 05:30:14 | Re: Upgrading PostgreSQL to 7.1.3 |
Previous Message | Jan Wieck | 2002-04-23 16:31:45 | Re: call the same pl/pgsql procedure twice in the same connection |