Re: Do we force dependency? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Do we force dependency?
Date
Msg-id 2122.1117901635@sss.pgh.pa.us
Whole thread Raw
In response to Do we force dependency?  (Qingqing Zhou <zhouqq@cs.toronto.edu>)
List pgsql-hackers
Qingqing Zhou <zhouqq@cs.toronto.edu> writes:
> How do we force the dependency according to pg_dependency records? Seems
> pg_dependency just records them and we follow the records by hand on
> create or delete ...

Deletion scans the entries and either deletes the dependent objects or
raises error.  It's not "by hand" particularly, at least not for
anything outside dependency.c.  If you were to write code that deleted
objects directly without going through the dependency mechanism, it
wouldn't get accepted ;-)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Michael Glaesemann
Date:
Subject: Re: Precedence of %
Next
From: Tom Lane
Date:
Subject: Re: Precedence of %