Re: pg_depend question

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_depend question
Date: 2006-05-31 19:13:14
Message-ID: 20060531191314.GH23169@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Eliana Providel 2006-05-31 19:32:58 problemas con psql -l
Previous Message Tony Caduto 2006-05-31 19:10:38 pg_depend question