Received: from berry.cs.brandeis.edu (berry.cs.brandeis.edu [129.64.2.5]) by hub.org (8.9.2/8.9.1) with ESMTP id RAA87403 for ; Mon, 12 Apr 1999 17:19:34 -0400 (EDT) (envelope-from pablo@mancha.cs.brandeis.edu) Received: from mancha.cs.brandeis.edu (mancha.cs.brandeis.edu [129.64.3.103]) by berry.cs.brandeis.edu (8.9.1a/8.9.1a) with ESMTP id RAA15447 for ; Mon, 12 Apr 1999 17:19:33 -0400 (EDT) Received: (from pablo@localhost) by mancha.cs.brandeis.edu (8.8.7/8.8.7) id RAA31982 for pgsql-interfaces@postgresql.org; Mon, 12 Apr 1999 17:19:37 -0400 From: Pablo Funes Message-Id: <199904122119.RAA31982@mancha.cs.brandeis.edu> Subject: nonblocking lock? To: pgsql-interfaces@postgresql.org Date: Mon, 12 Apr 1999 17:19:37 -0400 (EDT) Content-Type: text Is it possible to do a nonblocking lock? That is, I want several clients to execute, begin if table A is locked then go around doing stuff on other tables else lock A and do stuff on A endif the problem is, if I use normal lock, then after one client has locked and is doing stuff on A the other one will block and thus it won't be able to go around doing stuff on other tables. Is it possible to do a nonblocking lock that will just fail if the table is locked already? Thank you Pablo Funes Brandeis University pablo@cs.brandeis.edu