[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    Re: [GENERAL] pg_depend question
From:       Martijn van Oosterhout <kleptog () svana ! org>
Date:       2006-05-31 19:13:14
Message-ID: 20060531191314.GH23169 () svana ! org
[Download RAW message or body]


On Wed, May 31, 2006 at 02:10:38PM -0500, Tony Caduto wrote:
> Hi,
> I am working on a dependency/referenced by viewer and given a query like so:
> select refobjid from pg_depend where objid = 91640
> 
> how do I determine what refobjid is?  is there a function or something I 
> have missed or do I just run brute force queries against the system tables?

That's what refclassid tells you. It's the OID of the table where this
OID is relevent for...

Have a nice day,
-- 
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic