锁定 table 的 SQL 命令是什么?

What is the SQL command to lock a table?

SQLlocktableSQL 命令是什么?以及如何释放 lock ?

根据postgresql.org 在事务结束时释放锁。没有办法手动'unlock'加锁。

http://www.postgresql.org/docs/current/static/sql-lock.html