X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3236A4762C5 for ; Fri, 28 Feb 2003 11:06:01 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 59473-04 for ; Fri, 28 Feb 2003 11:05:50 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 65030475AA1 for ; Fri, 28 Feb 2003 09:05:54 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h1SE5v5u004198; Fri, 28 Feb 2003 09:05:57 -0500 (EST) To: "Michael A. Schulte" Cc: Gaetano Mendola , pgsql-admin@postgresql.org Subject: Re: ExclusiveLock and Python In-reply-to: <3E5F248F.8020606@sun.com> References: <29830.1046274625@sss.pgh.pa.us> <3E5F248F.8020606@sun.com> Comments: In-reply-to "Michael A. Schulte" message dated "Fri, 28 Feb 2003 09:57:51 +0100" Date: Fri, 28 Feb 2003 09:05:56 -0500 Message-ID: <4197.1046441156@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/448 X-Sequence-Number: 7646 "Michael A. Schulte" writes: > Tom Lane wrote: >> Offhand I think this is only used to implement waits associated with >> SELECT FOR UPDATE row locking --- all other locks are on tables or >> table-like objects. > What about two processes updating the same row? Right, that case is also a row lock. > I thougth > PostGres locks the row in this case and this would also > be reflected as an entry in pg_locks with mode > ExclusiveLock. There's no pg_locks entry for a row lock. regards, tom lane