Обсуждение: pg_depend question

Поиск
Список
Период
Сортировка

pg_depend question

От
Tony Caduto
Дата:
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?

Thanks in advance :-)

--
Tony


Re: pg_depend question

От
Martijn van Oosterhout
Дата:
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.

Вложения