MS Access 2007 update write conflict problem & resolution

From: "Little, Douglas" <DOUGLAS(dot)LITTLE(at)orbitz(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, "pgadmin-support(at)postgresql(dot)org" <pgadmin-support(at)postgresql(dot)org>
Subject: MS Access 2007 update write conflict problem & resolution
Date: 2010-03-19 15:35:09
Message-ID: A434C531E37AD442815608A769550D8059425A3E00@EGEXCMB01.oww.root.lcl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-general

Hi,
We've been struggling with an MS Access 2007 app that updates a PG table. It was working, and then it wasn't.
It looks like we recreated the table without specifying the precision on the timestamp columns.

PG is defaulting to timestamp(6), which doesn't work with MS Access. The finest precision Access can deal with is timestamp(3).
When the record is retrieved from PG it displays 6 microseconds, when Access prepares the update, the value is rounded to 3 microseconds.
The update can't then locate the row (timestamp mismatch), and displays the 'write conflict' error.

Altering the column to timestamp(0) corrected the issue.

2 questions

1- PGAdmin was reporting the precision as 0, while a select was displaying 6 microseconds. Is this a known bug in pgadmin?

2- Is there a way in PG that I can set the default precision on timestamp?
Thanks

I'll cross post to the pgadmin list for the pgadmin question.

Doug Little

Sr. Data Warehouse Architect | Enterprise Data Management | Orbitz Worldwide
500 W. Madison, Suite 1000 Chicago IL 60661| Office 312.260.2588 | Fax 312.894.5164 | Cell 847-997-5741
Douglas(dot)Little(at)orbitz(dot)com<mailto:Douglas(dot)Little(at)orbitz(dot)com>
[cid:image001(dot)jpg(at)01CAC74F(dot)9EF04250] orbitz.com<http://www.orbitz.com/> | ebookers.com<http://www.ebookers.com/> | hotelclub.com<http://www.hotelclub.com/> | cheaptickets.com<http://www.cheaptickets.com/> | ratestogo.com<http://www.ratestogo.com/> | asiahotels.com<http://www.asiahotels.com/>

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message justin@magwerks.com 2010-03-19 18:12:52 Re: [GENERAL] MS Access 2007 update write conflict problem & resolution
Previous Message Michael Shapiro 2010-03-19 12:29:08 Re: pgAdmin Graphical Query Tool Crashes on Mac

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2010-03-19 16:11:00 Postgres officially accepted in to 2010 Google Summer of Code program
Previous Message Raymond O'Donnell 2010-03-19 15:07:06 Re: Many-to-many problem