Re: Do we force dependency?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Do we force dependency?
Date: 2005-06-04 16:13:55
Message-ID: 2122.1117901635@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-06-04 16:23:27 Re: Precedence of %
Previous Message Michael Glaesemann 2005-06-04 16:06:05 Re: Precedence of %