Skip site navigation (1) Skip section navigation (2)

pgsql: Rewrite DROP's dependency traversal algorithm into an honest

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Rewrite DROP's dependency traversal algorithm into an honest
Date: 2008-06-08 22:41:04
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Log Message:
Rewrite DROP's dependency traversal algorithm into an honest two-pass
algorithm, replacing the original intention of a one-pass search, which
had been hacked up over time to be partially two-pass in hopes of handling
various corner cases better.  It still wasn't quite there, especially as
regards emitting unwanted NOTICE messages.  More importantly, this approach
lets us fix a number of open bugs concerning concurrent DROP scenarios,
because we can take locks during the first pass and avoid traversing to
dependent objects that were just deleted by someone else.

There is more that can be done here, but I'll go ahead and commit the
base patch before working on the options.

Modified Files:
        genam.c (r1.68 -> r1.69)
        dependency.c (r1.73 -> r1.74)
        genam.h (r1.72 -> r1.73)
        dependency.h (r1.35 -> r1.36)
        alter_table.out (r1.106 -> r1.107)
        create_view.out (r1.11 -> r1.12)
        domain.out (r1.43 -> r1.44)
        foreign_key.out (r1.45 -> r1.46)
        inherit.out (r1.24 -> r1.25)
        namespace.out (r1.3 -> r1.4)
        plancache.out (r1.6 -> r1.7)
        privileges.out (r1.36 -> r1.37)
        subselect.out (r1.17 -> r1.18)
        truncate.out (r1.14 -> r1.15)
        tablespace.source (r1.5 -> r1.6)

pgsql-committers by date

Next:From: User GleuDate: 2008-06-08 22:44:15
Subject: pgsnap - pgsnap: TODO review + Demo of the next release.
Previous:From: Tom LaneDate: 2008-06-08 22:15:45
Subject: pgsql: Stamp 7.4.21 (except for

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group