Lee Kwok Shing <kslee@graduate.hku.hk> writes:
> for something since the following statements are execution repeatedly
> select (0, NULL, NULL, .....
Sounds like the backends are waiting for a spinlock. Could you
provide a debugger stack trace?
regards, tom lane