X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B75119FA4E0 for ; Sat, 22 Jul 2006 11:39:25 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 73180-01 for ; Sat, 22 Jul 2006 11:39:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from bugs.unl.edu.ar (bugs.unl.edu.ar [168.96.132.208]) by postgresql.org (Postfix) with ESMTP id 918E99FA43C for ; Sat, 22 Jul 2006 11:39:20 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by bugs.unl.edu.ar (Postfix) with ESMTP id 958026F90B for ; Sat, 22 Jul 2006 11:38:59 -0300 (ART) Received: from bugs.unl.edu.ar ([127.0.0.1]) by localhost (bugs.unl.edu.ar [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hh0Bci87wpmf for ; Sat, 22 Jul 2006 11:38:58 -0300 (ART) Received: by bugs.unl.edu.ar (Postfix, from userid 1000) id AECFC6F90A; Sat, 22 Jul 2006 11:38:58 -0300 (ART) Received: from localhost (localhost [127.0.0.1]) by bugs.unl.edu.ar (Postfix) with ESMTP id 5B5D3FF11 for ; Sat, 22 Jul 2006 11:38:58 -0300 (ART) Date: Sat, 22 Jul 2006 11:38:58 -0300 (ART) From: Martin Marques To: pgsql-sql@postgresql.org Subject: Rows with exclusive lock Message-ID: MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.058 tagged_above=0 required=5 tests=AWL X-Spam-Level: Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE X-Archive-Number: 200607/286 X-Sequence-Number: 25860 Is it posible to get an exclusive (read/write) lock on certain rows? I=20 don't want to block the whole table, only certain rows, but I want it to=20 be a read/write lock. AFAIK SELECT FOR UPDATE doesn't help with this. Do I have to go for another aproche? -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 --------------------------------------------------------- Lic. Mart=EDn Marqu=E9s | SELECT 'mmarques' || Centro de Telem=E1tica | '@' || 'unl.edu.ar'; Universidad Nacional | DBA, Programador, del Litoral | Administrador ---------------------------------------------------------=