Re: postgres catalog files problem - Mailing list pgsql-general

From Tom Lane
Subject Re: postgres catalog files problem
Date
Msg-id 21454.1190036345@sss.pgh.pa.us
Whole thread Raw
In response to postgres catalog files problem  ("Josh Harrison" <joshques@gmail.com>)
Responses Re: postgres catalog files problem  ("Josh Harrison" <joshques@gmail.com>)
List pgsql-general
"Josh Harrison" <joshques@gmail.com> writes:
> if I give this query, which checks for the triggers that do not have
> corresponding tables in the pg_class

> select * from pg_trigger where tgrelid not in (select relfilenode from
> pg_class),

This query is wrong --- relfilenode is not a join column for any other
table.  You should be using pg_class.oid there.

            regards, tom lane

pgsql-general by date:

Previous
From: "Josh Harrison"
Date:
Subject: postgres catalog files problem
Next
From: "Josh Harrison"
Date:
Subject: Re: postgres catalog files problem