PostgreSQL 没有 UNLOCK ?

PostgreSQL 没有 UNLOCK ?

在 PostgreSQL 中有个 LOCK 可以对 table 加锁,但没有相应的 UNLOCK 解锁,why ?      
The lock is in the transaction block,something like begin......commit,and only useful in that(I think).Once the transaction is ended,the lock will be dropped automaticly.      
版主多久来一次呀?

再问:如果在一个 transaction 中有许多工作要做,最后执行 commit 后,在向数据库中写数据的过程中突然停电,结果如何?这个 transaction 是执行了一部分呢还是全不执行?或者全部执行?      
I am not at Beijing.Because of my environment,I can not come here everyday.

I don't know how pgsql deal with the transaction that not ended(because of crash et.).I know oracle will rollback all the transaction.
About the transaction that not commit,I think it will not be excute.      
I agree with you.
Maybe I should refer to the SQL standard for more information about transaction.