Re: [INTERFACES] PSQLODBC and TRANSACTIONS

From: Byron Nikolaidis <byronn(at)insightdist(dot)com>
To: sferac(at)bo(dot)nettuno(dot)it
Cc: "pgsql-interfaces(at)postgreSQL(dot)org" <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] PSQLODBC and TRANSACTIONS
Date: 1999-01-12 15:55:23
Message-ID: 369B706B.BEE07230@insightdist.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Jose' Soares wrote:

> Hi,
>
> I'm trying transactions using M$-access and PSQLODBC without success,
> Seems that backend locks itself
> by opening two connections to work on the same table.
>
> I have a table with 3 rows:
>
> codice nome cap
> ---------------------------
> 1 pippo 0
> 2 pluto 0
> 3 topolino 0
> ---------------------------
>

The logfile shows that Access is using Manual Commit. The last two lines show a separate connection
being made and then a select statement on "operatori" table. But it is still locked from the other
connection. (see below)

I don't think there is anything the driver can do about this. You need Vladim's new locking code! I
think that is going to be in the next version of Postgres.

Byron

<Highlights from the logfile>
BEGIN
UPDATE "operatori" SET "cap"='1' WHERE "codice" = '1 '
SELECT "codice","cap" FROM "operatori" WHERE "codice" = '3 '
UPDATE "operatori" SET "cap"='1' WHERE "codice" = '3 '
SELECT "codice","cap" FROM "operatori" WHERE "codice" = '2 '
UPDATE "operatori" SET "cap"='1' WHERE "codice" = '2 '

<Another connection is created here>
SQLDriverConnect(out)='DSN=PostgreSQL;DATABASE=hygea;SERVER=verde;PORT=5432;UID=marco;PWD=;READONLY=0;PROTOCOL=6.4;FAKEOIDINDEX=0;SHOWOIDCOLUMN=0;ROWVERSIONING=0;SHOWSYSTEMTABLES=0;CONNSETTINGS=set+ksqo+to+%27on%27%3b'

<This one hangs it>
SELECT "operatori"."codice" FROM "operatori"

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Aleksey Demakov 1999-01-13 08:01:32 Re: [INTERFACES] yet another postgresql interface
Previous Message Jose' Soares 1999-01-12 09:55:31 PSQLODBC and TRANSACTIONS