Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 58B841337B49 for ; Thu, 6 Jan 2011 00:12:41 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 50322-04 for ; Thu, 6 Jan 2011 04:12:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mead.wulfsberg.com (smtp.wulfsberg.com [216.185.173.34]) by mail.postgresql.org (Postfix) with ESMTP id A203E133798E for ; Thu, 6 Jan 2011 00:12:31 -0400 (AST) Received: from [10.8.0.82] (hadrian.wulfsberg.com [10.112.0.254]) by mead.wulfsberg.com (8.13.6/8.13.6) with ESMTP id p064CTAn028406 for ; Wed, 5 Jan 2011 21:12:29 -0700 Message-ID: <4D255D4D.5080807@cobham.com> Date: Wed, 05 Jan 2011 23:12:29 -0700 From: Karen Springer Organization: Wulfsberg Electronics User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: problem updating from form Content-Type: multipart/alternative; boundary="------------060507030806050105060106" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201101/1 X-Sequence-Number: 10548 This is a multi-part message in MIME format. --------------060507030806050105060106 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I have a problem that has me stumped. We have a table that is the main table (tbl_Assemblies) in a production Microsoft Access application. Our users are complaining that sometimes they enter data in the form, move off of the record & then upon returning to the record the data reverts back to what existed in the field prior to the entry. These complaints have recently become more frequent. This is an intermittent problem, but I have been able to replicate the issue consistently on one particular record. There isn't anything unusual about the data. We are using PostgreSQL 8.1.4 on RHEL 4.1, Microsoft Access 2002 & psqlodbc 8.01.0200 though I have tried psqlodbc 9 with this configuration. I am aware that our postgres major & minor versions are out of date. We are looking at that now. When we have a problem record, I can update at the table level from Access, but not in the form. I have isolated the table, removing any foreign keys from the table. There aren't any triggers. I created a new Access DB with only the table & a crude form with only the primary key & the work order field. I have played around with the ODBC settings. We have vacuumed, reindexed & performed a full vacuum on the Postgres DB multiple times. None of these actions have had a positive effect. I have looked at pg_stat_activity & pg_locks for open transactions & row locks. I created an identical copy of the table & imported all of the data, about 194,000 records, into it. I saw the same problem results until I removed all, but about 20 records. Only then was I able to get the update from a form to stick on our test record. Incidentally, the production Access DB grows in size rapidly, from 14MB after a repair & compact to 400 MBs a day or two later. Here is the table structure with the foreign keys removed. CREATE TABLE "Production_Tracking"."tbl_Assemblies" ( "BarCode" varchar(12) NOT NULL, "PartNumber" varchar(32) NOT NULL, "LRU" varchar(20), "PartsListRev" varchar(10), "SerialNumber" float8, "MTN" varchar(15), "DocNum" varchar(50), "Comments" text, "SupplierNo" varchar(7), "DrawingNoRev" varchar(10), "WorkOrder" varchar(8), "BldStdRev" varchar(15), "Quantity" int4 NOT NULL DEFAULT 1, "Salesorder" varchar(8), "WOQuantity" int4, CONSTRAINT "pkey_BarCode" PRIMARY KEY ("BarCode") ) WITHOUT OIDS; I can provide the ODBC logs if helpful. I've noticed that the logs do not show the xmin field. Here are the ODBC settings: Unicode Disable Genetic Optimizer = True KSQO(Keyset Query Optimization) = True Recognize Unique Indexes = True Use Declare/Fetch = False ComLog (C:\psqlodbc_xxx.log) = False Parse Statements = False Cancel as Free Stmt (Exp) = False MyLog (C:\mylog_xxxx.log) = False Unknown Sizes = Maximum Text as LongVarChar = False Unknowns as LongVarChar = False Bools as Char = True Max Varchar = 254 Max LongVarChar = 8190 Cache Size = 100 SysTable Prefixes: dd_; Read Only = False Show System Tables = False LF <-> CR/LF conversion = False Updateable Cursors = False byea as LO = False Row Versioning = True Disallow Premature = False True is -1 = True Server side prepare = False use gssapi for GSS request = False Int8 As = default Level of rollback on errors = Transaction I apologize for the length & detail of this message. I would greatly appreciate any help. Thank you, Karen ** --------------060507030806050105060106 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi,

I have a problem that has me stumped.

We have a table that is the main table (tbl_Assemblies) in a production Microsoft Access application.  Our users are complaining that sometimes they enter data in the form, move off of the record & then upon returning to the record the data reverts back to what existed in the field prior to the entry.  These complaints have recently become more frequent.  This is an intermittent problem, but I have been able to replicate the issue consistently on one particular record.  There isn't anything unusual about the data.

We are using PostgreSQL 8.1.4 on RHEL 4.1, Microsoft Access 2002 & psqlodbc 8.01.0200 though I have tried psqlodbc 9 with this configuration.  I am aware that our postgres major & minor versions are out of date.  We are looking at that now.

When we have a problem record, I can update at the table level from Access, but not in the form.  I have isolated the table, removing any foreign keys from the table.  There aren't any triggers.  I created a new Access DB with only the table & a crude form with only the primary key & the work order field.  I have played around with the ODBC settings.  We have vacuumed, reindexed & performed a full vacuum on the Postgres DB multiple times.  None of these actions have had a positive effect.  I have looked at pg_stat_activity & pg_locks for open transactions & row locks.   I created an identical copy of the table & imported all of the data, about 194,000 records, into it.  I saw the same problem results until I removed all, but about 20 records.  Only then was I able to get the update from a form to stick on our test record.  Incidentally, the production Access DB grows in size rapidly, from 14MB after a repair & compact to 400 MBs a day or two later.

Here is the table structure with the foreign keys removed.
CREATE TABLE "Production_Tracking"."tbl_Assemblies"
(
  "BarCode" varchar(12) NOT NULL,
  "PartNumber" varchar(32) NOT NULL,
  "LRU" varchar(20),
  "PartsListRev" varchar(10),
  "SerialNumber" float8,
  "MTN" varchar(15),
  "DocNum" varchar(50),
  "Comments" text,
  "SupplierNo" varchar(7),
  "DrawingNoRev" varchar(10),
  "WorkOrder" varchar(8),
  "BldStdRev" varchar(15),
  "Quantity" int4 NOT NULL DEFAULT 1,
  "Salesorder" varchar(8),
  "WOQuantity" int4,
  CONSTRAINT "pkey_BarCode" PRIMARY KEY ("BarCode")
)
WITHOUT OIDS;

I can provide the ODBC logs if helpful.  I've noticed that the logs do not show the xmin field.

Here are the ODBC settings:
Unicode
Disable Genetic Optimizer = True
KSQO(Keyset Query Optimization) = True
Recognize Unique Indexes = True
Use Declare/Fetch = False
ComLog (C:\psqlodbc_xxx.log) = False
Parse Statements = False
Cancel as Free Stmt (Exp) = False
MyLog (C:\mylog_xxxx.log) = False
Unknown Sizes = Maximum
Text as LongVarChar = False
Unknowns as LongVarChar = False
Bools as Char = True
Max Varchar = 254
Max LongVarChar = 8190
Cache Size = 100
SysTable Prefixes:  dd_;
Read Only = False
Show System Tables = False
LF <-> CR/LF conversion = False
Updateable Cursors = False
byea as LO = False
Row Versioning = True
Disallow Premature = False
True is -1 = True
Server side prepare = False
use gssapi for GSS request = False
Int8 As = default
Level of rollback on errors = Transaction

I apologize for the length & detail of this message.  I would greatly appreciate any help.

Thank you,
Karen

--------------060507030806050105060106--