LOCK TABLE as a prepared statement?
Does it make sense to prepare a LOCK TABLE statement? I'm not really concerned about efficiency here, because it would only execute once a transaction and at most a few times a minute. I'm more wondering if the concept is meaningful.
I'm usi开发者_开发知识库ng the PostgreSQL JDBC driver, if it matters.
Performance aside, preparing statements is useful when you have parameters in your query. Since your query has no parameters you don't need to prepare it.
精彩评论