Re: pg_depend - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_depend
Date
Msg-id 22202.995334666@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_depend  (Hiroshi Inoue <Inoue@tpf.co.jp>)
Responses Re: pg_depend
RE: pg_depend
List pgsql-hackers
Hiroshi Inoue <Inoue@tpf.co.jp> writes:
> Is it really determined that *DROP OBJECT* drops the objects
> which are dependent on it ?

DROP object CASCADE should work that way, because that's what the spec
says.

Whether the default DROP behavior should be CASCADE, RESTRICT, or the
current laissez-faire behavior remains to be debated ;-).  The spec
is no help since it has no default: DROP *requires* a CASCADE or
RESTRICT option in SQL92.  But I doubt our users will let us get away
with changing the syntax that way.  So, once we have the CASCADE and
RESTRICT options implemented, we'll need to decide what an unadorned
DROP should do.  Opinions anyone?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bill Studenmund
Date:
Subject: Re: pg_depend
Next
From: Bruce Momjian
Date:
Subject: Re: pg_depend