Re: plpgsql temporary table problem
От | Bruce Momjian |
---|---|
Тема | Re: plpgsql temporary table problem |
Дата | |
Msg-id | 200204141715.g3EHFiF12878@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: plpgsql temporary table problem (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: plpgsql temporary table problem
Re: plpgsql temporary table problem |
Список | pgsql-general |
Tom Lane wrote: > Bruce Momjian <pgman@candle.pha.pa.us> writes: > > ... I believe every reference to the TEMP table has > > to be an EXECUTE. I think this will be fixed in 7.3 because the temp > > tables will exist in a separate schema. > > No, the separate schema won't help matters a bit. > > Plan dependency tracking (to allow us to drop invalidated cached plans) > would help. Oh, the old temp code mapped a temp name to a system table name that was stored in the plpgsql function cache. I thought the new code would not make that mapping until function runtime. Does the function cache keep a physical table name in the cache with schemas, or maybe does it store the oid of the table? It probably is oid, and that's why the schema changes will not fix it. I have update our TODO item to explain the solution: o Fix problems with complex temporary table creation/destruction without using PL/PgSQL EXECUTE, needs cached plan invalidation -- 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
В списке pgsql-general по дате отправления: