From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Gevik Babakhani <pgdev(at)xs4all(dot)nl> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Question about dependency functions in the backend |
Date: | 2006-04-23 22:39:41 |
Message-ID: | 20060423223941.GH4775@surnet.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Gevik Babakhani wrote:
> I was wondering whether there is a backend function to help finding the
> dependencies on a relation.column inside pg_depend. Something like
> dependency.c:0255:findAutoDeletableObjects also taking the "refobjsubid"
> with the search. This I ask in order to avoid reinventing the wheel :)
>
> Perhaps the "findAutoDeletableObjects" could be used but the function
> name is confusing.
Huh, you can certainly give the refobjsubid to findAutoDeletableObjects.
Just set it to a non-zero value. Note that that function only returns
DEPENDENCY_INTERNAL and DEPENDENCY_AUTO objects however.
What do you need it for?
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2006-04-23 22:43:30 | Re: Protocol Message Graph |
Previous Message | Gevik Babakhani | 2006-04-23 22:37:44 | Re: Please advice TODO Item pg_hba.conf |