pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ON DELETE CASCADE with multiple paths in PostgreSQL 9.x
3+ messages / 2 participants
[nested] [flat]

* ON DELETE CASCADE with multiple paths in PostgreSQL 9.x
@ 2011-06-07 09:30  Anton Dedov <adedov@parallels.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Anton Dedov @ 2011-06-07 09:30 UTC (permalink / raw)
  To: pgsql-bugs

Hello!

We are using patched version of PostgreSQL 8.1 in order to work-around 
bug described in 
http://archives.postgresql.org/pgsql-bugs/2007-05/msg00130.php. Now, we 
are going to upgrade to 9.0 and it also would be great to get rid of 
patch as it makes keeping database engine current too expensive task. 
I've checked 9.0 and it seems that undesirable behavior is still there. 
Is there any plans to fix it in future releases? May be there are some 
settings/workarounds that could help in this situation without patching 
PostgreSQL server?

-- 
Anton Dedov
Senior Software Developer
Parallels Automation
Parallels




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: ON DELETE CASCADE with multiple paths in PostgreSQL 9.x
@ 2011-06-07 15:33  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Anton Dedov <adedov@parallels.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2011-06-07 15:33 UTC (permalink / raw)
  To: Anton Dedov <adedov@parallels.com>; +Cc: pgsql-bugs

Anton Dedov <adedov@parallels.com> writes:
> We are using patched version of PostgreSQL 8.1 in order to work-around 
> bug described in 
> http://archives.postgresql.org/pgsql-bugs/2007-05/msg00130.php. Now, we 
> are going to upgrade to 9.0 and it also would be great to get rid of 
> patch as it makes keeping database engine current too expensive task. 
> I've checked 9.0 and it seems that undesirable behavior is still there. 
> Is there any plans to fix it in future releases?

It wasn't a bug then, and it isn't a bug now.  There is no guarantee of
the order in which FK constraints will be checked.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: ON DELETE CASCADE with multiple paths in PostgreSQL 9.x
@ 2011-06-07 18:15  Anton Dedov <adedov@parallels.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Anton Dedov @ 2011-06-07 18:15 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs

I though that following message provided evidence for bug: http://archives.postgresql.org/pgsql-bugs/2007-05/msg00135.php

--
Anton Dedov

________________________________________
From: Tom Lane [tgl@sss.pgh.pa.us]
Sent: Tuesday, June 07, 2011 7:33 PM
To: Anton Dedov
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] ON DELETE CASCADE with multiple paths in PostgreSQL 9.x

Anton Dedov <adedov@parallels.com> writes:
> We are using patched version of PostgreSQL 8.1 in order to work-around
> bug described in
> http://archives.postgresql.org/pgsql-bugs/2007-05/msg00130.php. Now, we
> are going to upgrade to 9.0 and it also would be great to get rid of
> patch as it makes keeping database engine current too expensive task.
> I've checked 9.0 and it seems that undesirable behavior is still there.
> Is there any plans to fix it in future releases?

It wasn't a bug then, and it isn't a bug now.  There is no guarantee of
the order in which FK constraints will be checked.

                        regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2011-06-07 18:15 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-06-07 09:30 ON DELETE CASCADE with multiple paths in PostgreSQL 9.x Anton Dedov <adedov@parallels.com>
2011-06-07 15:33 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-06-07 18:15   ` Anton Dedov <adedov@parallels.com>

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