Re: delete commands fails silently to delete primary key - Mailing list pgsql-general

From Andrus
Subject Re: delete commands fails silently to delete primary key
Date
Msg-id 191DC854409F41DABC041B3B8A91CCF4@andrusnotebook
Whole thread Raw
In response to Re: delete commands fails silently to delete primary key  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: delete commands fails silently to delete primary key
List pgsql-general
> There have been a number of index-corruption bugs fixed since 8.1.4 ...
>
> In particular, if it's possible that any of these clients abort before
> committing these insertions, the vacuum race condition bug fixed in
> 8.1.10 is a pretty likely candidate for your problem.

I changed second statement to

INSERT INTO session ('MYCOMPNAME',ipaddress,logintime,loggeduser)
   SELECT 'MYCOMPNAME',
inet_client_addr()::CHAR(14),current_timestamp::CHAR(28),CURRENT_USER
         WHERE NOT EXISTS (SELECT 1 FROM session WHERE
workplace='MYCOMPNAME')

where MYCOMPNAME is logging-in computer name.

Will this fix the isse or is it better to wait 100 ms  and re-try insert?

Andrus.


pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: date stamp on update?
Next
From: Gregory Stark
Date:
Subject: Re: Postgres mail list traffic over time