table-level and row-level locks.

Started by Jenny -over 22 years ago2 messages
#1Jenny -
nat_lazy@hotmail.com

<html><div style='background-color:'><DIV>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV>Iam trying to acquire rowlevel locks in postgresql. I try doing this: </DIV>
<DIV>&nbsp;'select * from students where name='Larry' for update;</DIV>
<DIV>But by looking at the holding array of proclock , I've noticed that by doing this only
<DT>AccessShareLock gets acquired which is a table level lock. </DT>
<DT>How do I acquire rowlevelock and what fields of Lock or Proclock datastructures indicate it.</DT>
<DT>Thanks</DT>
<DT>Jenny</DT></DIV></DIV></DIV></DIV></DIV></DIV></DIV></div><br clear=all><hr>MSN 8 helps <a href="http://g.msn.com/8HMVENUS/2752??PS=&quot;&gt;ELIMINATE E-MAIL VIRUSES.</a> Get 2 months FREE*.</html>

#2Sailesh Krishnamurthy
sailesh@cs.berkeley.edu
In reply to: Jenny - (#1)
Re: table-level and row-level locks.

Once more unto the breach -

Could you please abstain from sending HTML email to the list ?
Many thanks !

--
Pip-pip
Sailesh
http://www.cs.berkeley.edu/~sailesh