pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fred Parkinson <FredP@abag.ca.gov>
To: pgsql-odbc@postgresql.org
Subject: Way to reveal record locks?
Date: Fri, 14 Sep 2007 07:04:23 -0700
Message-ID: <46EA3277020000A700004CAC@groupwise.abag.ca.gov> (raw)

I am using MS Access as a front end to a postgres database running on a Solaris Unix box, using odbc as the communication medium.

One of the main tools of my Access app is a process that runs at night to process student progress in an online training system.

A couple of nights ago the app started generating the error:
"Runtime error 3046: Could not save; currently locked by another user"
and it is on the app screen when I come in in the morning, locking up the program and keeping it from completing.  I trap as many errors as I can think of, but this is escaping trap so I don't know where in the code it is happening.

I am sure that the error is not from an Access user A. because the process runs between 11pm and 1am and 2. because there are no .ldb files open, a file type created when a user opens an access application.

So, is there any way to determine what records are locked, if in fact that is the problem?  (As you know, the error reported may not actually be the underlying problem).

Most of the program is designed with classes instantiated as objects, and in Access when I take the 'debug' option of the error message box, all that happens is the program goes to the first process of the first object, so that is useless.

If no one has an answer I will probably write a routine that steps through every record of every table and attempts to lock it to see if I can reproduce the error that way.

Thanks in advance for any suggestions anyone may offer.

Fred Parkinson




view thread (2+ messages)  latest in thread

Message-ID: <46EA3277020000A700004CAC@groupwise.abag.ca.gov>
Permalink:  ../46EA3277020000A700004CAC@groupwise.abag.ca.gov/
Also on:    postgresql.org/message-id/46EA3277020000A700004CAC@groupwise.abag.ca.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: FredP@abag.ca.gov
  Subject: Re: Way to reveal record locks?
  In-Reply-To: <46EA3277020000A700004CAC@groupwise.abag.ca.gov>
  References: <46EA3277020000A700004CAC@groupwise.abag.ca.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox