Re: Really strange foreign key constraint problem blocking delete

From: Vick Khera <vivek(at)khera(dot)org>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Really strange foreign key constraint problem blocking delete
Date: 2014-10-03 18:38:25
Message-ID: CALd+dccejgn=jfdMRaM7wi4-ZrF2RowS0jxRF0i3GCjTWKgFHg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Using my magick powers of mind reading, I will guess you made circular
dependencies.

On Fri, Oct 3, 2014 at 12:17 PM, Tim Mickelson
<tim_mickelson(at)bigfoot(dot)com> wrote:
> 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".
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Israel Brewster 2014-10-03 19:24:31 Processor usage/tuning question
Previous Message Jonathan Vanasco 2014-10-03 16:21:46 faster way to calculate top "tags" for a "resource" based on a column