測試PostgreSQL行級鎖

1.打開三個psql窗口,連接到postgreSQL數據庫   查看窗口連接到的服務進程的pid。 select pg_backend_pid();           2.在第一個窗口更新一行數據 mydb=# begin; BEGIN mydb=# select * from student where id =1 for update; +----+-------+ | id | name
相關文章
相關標籤/搜索