Really strange foreign key constraint problem blocking delete

From: Tim Mickelson <tim_mickelson(at)bigfoot(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Really strange foreign key constraint problem blocking delete
Date: 2014-10-03 16:17:38
Message-ID: 542ECC22.2030007@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Even if I try to delete the data entry in the table channel_mapping with
idaut 1622, it is not possible to delete from the table
tmp_autenticazionesocial with the error below. How is this even possible
since there is no channel_mapping with idaut 1622 any more?? I tried
this in Java under a transaction, but also in pgAdmin III.

ERROR: update or delete on table "tmp_autenticazionesocial" violates
foreign key constraint "channel_mapping_idaut_fkey" on table
"channel_mapping"
DETAIL: Key (idautenticazionesocial)=(1622) is still referenced from
table "channel_mapping".

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jonathan Vanasco 2014-10-03 16:21:46 faster way to calculate top "tags" for a "resource" based on a column
Previous Message Merlin Moncure 2014-10-03 14:44:26 Re: How to find greatest record before known values fast