X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 639DFD1B376 for ; Thu, 10 Jun 2004 15:11:11 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 65844-06 for ; Thu, 10 Jun 2004 18:11:05 +0000 (GMT) Received: from skycasters.net (mail.skycasters.net [204.232.30.5]) by svr1.postgresql.org (Postfix) with ESMTP id E2A56D1B2A8 for ; Thu, 10 Jun 2004 15:11:02 -0300 (ADT) Received: from rhino.esc1.com [66.82.143.102] by skycasters.net with ESMTP (SMTPD32-8.05) id A42E4308011C; Thu, 10 Jun 2004 14:10:54 -0400 Received: from rhino.esc1.com (localhost.localdomain [127.0.0.1]) by rhino.esc1.com (8.12.10/8.12.10) with ESMTP id i5AI9Ehn013743 for ; Thu, 10 Jun 2004 14:09:14 -0400 Received: from localhost (localhost [[UNIX: localhost]]) by rhino.esc1.com (8.12.10/8.12.10/Submit) id i5AI9DkD013741 for pgsql-interfaces@postgresql.org; Thu, 10 Jun 2004 14:09:13 -0400 From: Terry Lee Tucker Organization: Enhanced Solutions Computing To: pgsql-interfaces@postgresql.org Subject: Locking Question Date: Thu, 10 Jun 2004 14:09:13 -0400 User-Agent: KMail/1.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200406101409.13547.terry@esc1.com> X-Declude-Sender: terry@esc1.com [127.0.0.1] X-Declude-Spoolname: Da42e4308011caf06.SMD X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/31 X-Sequence-Number: 4959 Good Day, I'm working on a transportation application which is written in C using X-Windows. I've been experiementing with various methods for row level locking. This application will be used by about 70 people at once with many updates occurring to much of the data. At present, I'm looking at serialized transactions. I have discovered that if the interface runs into a record that is currently being updated with a SELECT FOR UPDATE, it sits and waits. I'm looking for a way to get feedback to the user. I'm executing the SELECT FOR UPDATE with a PQexec. PQexec blocks and waits. If I use PQsendQuery to execute the statement, will I be able to get some sort of feed back from that as to what is going on? -- Quote: 35 "Losing [the debate about marriage] means losing marriage as a social institution, a shared public norm. The question is not whether this is a battle we can win, but whether it is a battle we can afford to lose." --Maggie Gallagher Work: 1-336-372-6812 Cell: 1-336-363-4719 email: terry@esc1.com