table level and row level locks

From: "Jenny -" <nat_lazy(at)hotmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: table level and row level locks
Date: 2003-07-13 17:16:26
Message-ID: BAY1-F5RPMekG50v8dx000071dc@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

<html><div style='background-color:'><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><br clear=all><hr>Add photos to your e-mail with <a href="http://g.msn.com/8HMZENUS/2746??PS=">MSN 8.</a> Get 2 months FREE*.</html>

Attachment Content-Type Size
unknown_filename text/html 655 bytes

Browse pgsql-hackers by date

  From Date Subject
Next Message Jenny - 2003-07-13 17:17:25 locking mechanism
Previous Message Jenny - 2003-07-13 17:12:05 row level locks