Re: [GENERAL] "disappearing" rows in temp table, in recursing trigger

2008-12-30 Thread Tom Lane
"Eric Worden" writes: > Thank you this helped me fix it. I moved the "create temporary > table..." statement to the outermost calling function and changed it > from STABLE to VOLATILE. I'm not sure which change made the > difference -- I had to move the create table statement for an > additional

Re: [GENERAL] "disappearing" rows in temp table, in recursing trigger

2008-12-30 Thread Eric Worden
Thank you this helped me fix it. I moved the "create temporary table..." statement to the outermost calling function and changed it from STABLE to VOLATILE. I'm not sure which change made the difference -- I had to move the create table statement for an additional reason. On Sat, Dec 27, 2008

Re: [GENERAL] "disappearing" rows in temp table, in recursing trigger

2008-12-27 Thread Craig Ringer
Eric Worden wrote: > The recursive function creates a temp table [...] I > have version 8.1.10. While I haven't looked in detail, I'd be surprised if this wasn't an issue with pre-8.3 versions lack of any way to automatically re-generate cached plans in functions. Try running your code on an 8.

[GENERAL] "disappearing" rows in temp table, in recursing trigger

2008-12-26 Thread Eric Worden
Hello, I'm guessing the rows aren't really disappearing but how else to describe it? I have a trigger function that calls another function that is recursive. The recursive function creates a temp table and inserts rows into it. After the recursive function returns, the trigger function exam