Thread: table-level and row-level locks.

table-level and row-level locks.

From
"Jenny -"
Date:
<div style="background-color:"><div><div><div>Iam trying to acquire rowlevel locks in postgresql. I try doing this:
</div><div> '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 <dl><dt>AccessShareLock gets acquired which is a table level lock.
<dt>Howdo I acquire rowlevelock and what fields of Lock or Proclock datastructures indicate
it.<dt>Thanks<dt>Jenny</dl></div></div></div></div><brclear="all" /><hr />Help STOP SPAM with <a
href="http://g.msn.com/8HMRENUS/2731??PS=">thenew MSN 8 </a> and get 2 months FREE*