Hi Dave: Thanks for helping me out. However, I am not sure what do you mean unnamed statement. Which one is using unnamed statement ?(Dbeaver or JDBC), and if the named statement is good, how can I do it from JDBC? The server is in AWS RDS, I don’t see any log, should I reconfig the server to get logs? I tried to Explain call …, but it said syntax error. When the JDBC is running, I got the pid, is there any way for me to check what is it waiting for? There is no dead lock, but some relationship locks, all granted and no waiting, but why it never comes back? Thanks Andrew |