From: Alvaro Herrera <alvherre@commandprompt.com>
To: Daniel Cristian Cruz <danielcristian@gmail.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6226: Broken foreign key stored on database (parent deleted with children still readable, BUG#6225 Update)
Date: Wed, 05 Oct 2011 11:57:54 -0300
Message-ID: <1317826416-sup-836@alvh.no-ip.org> (raw)
In-Reply-To: <CACffM9EEBRqhTwW7Hcgadqjx4DLYmbOGcKEA+fMtqbYSdTzRyg@mail.gmail.com>
References: <201109261829.p8QITXaZ017828@wwwmaster.postgresql.org>
<1317067677-sup-8297@alvh.no-ip.org>
<CACffM9EEBRqhTwW7Hcgadqjx4DLYmbOGcKEA+fMtqbYSdTzRyg@mail.gmail.com>
Excerpts from Daniel Cristian Cruz's message of mié oct 05 10:00:36 -0300 2011:
> 2011/9/26 Alvaro Herrera <alvherre@commandprompt.com>
>
> >
> > Please see if bug #6123 applies to this case.
> > http://www.mail-archive.com/pgsql-hackers@postgresql.org/msg181541.html
>
>
> I guess, yes, it's related, because we had a trigger that deletes a row,
> while other foreign key constraint is updating the row setting null.
>
> But the thread is almost a book, and I am confused. It's a bug or do I need
> to change my schema?
Well, some people say it's a bug, others say it's not; and even if it
is, changing it means backwards incompatible behavior, so *if* it is
patched, it will only change the behavior on a future release, not
whatever you're using.
> Where can I change it to avoid it?
I don't know enough about the problem to help you there, sorry.
--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: alvherre@commandprompt.com, danielcristian@gmail.com
Subject: Re: BUG #6226: Broken foreign key stored on database (parent deleted with children still readable, BUG#6225 Update)
In-Reply-To: <1317826416-sup-836@alvh.no-ip.org>
References: <201109261829.p8QITXaZ017828@wwwmaster.postgresql.org> <1317067677-sup-8297@alvh.no-ip.org> <CACffM9EEBRqhTwW7Hcgadqjx4DLYmbOGcKEA+fMtqbYSdTzRyg@mail.gmail.com> <1317826416-sup-836@alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox