Atri Sharma <atri.jiit@gmail.com> writes:
> Does that mean that using (some) global storage is the cause of the problem?
If you're using global storage for state that needs to be replicated
per-scan, yes, probably. But it's hard to be sure when you're being
so vague about what you're doing.
regards, tom lane