Janning Vygen <vygen@gmx.de> writes:
> the problem is quite urgent because i can't afford the time for rewriting the
> app to not use temp tables. So i need to fix it. any help is very
> appreciated.
Show us a self-contained test case.
regards, tom lane