Re: Problem reloading regression database
От
Brent Verner
Тема
Re: Problem reloading regression database
Дата
Msg-id
20020115030551.GB9816@rcfile.org
Ответ на
Re: Problem reloading regression database (Tom Lane)
Список
Дерево обсуждения
Re: Problem reloading regression database Bruce Momjian <pgman@candle.pha.pa.us>
[2002-01-14 21:52] Tom Lane said: | Brent Verner writes: | > gotcha. No, I don't think anything inside that loop expects to | > persist across iterations. The attribute_buf is static to the | > file, and initialized in DoCopy. | | There is more to attribute_buf than meets the eye ;-) I certainly don't doubt that, especially when it's my eye :-O | > What I ended up doing is switching to per-tuple-context prior to | > the input loop, then switching back to the (saved) query-context | > after exiting the loop. I followed ResetTupleExprContext back, and | > it doesn't seem to do anything that would require a switch per loop. | > Are there any problems this might cause that I'm not seeing with | > my test case? | | I really don't feel comfortable with running heap_insert or the | subsequent operations in a per-tuple context. Have you tried any | test cases that involve triggers or indexes? no, I dropped the index for the 3mil COPY. I will run with some triggers and indexes in the table. cheers. brent -- "Develop your talent, man, and leave the world something. Records are really gifts from people. To think that an artist would love you enough to share his music with anyone is a beautiful thing." -- Duane Allman
В списке pgsql-hackers по дате отправления