Re: postgres catalog files problem

Поиск
Список
Период
Сортировка
От Josh Harrison
Тема Re: postgres catalog files problem
Дата
Msg-id 8d89ea1d0709170702m5a1cf1d0q3685912f1283591@mail.gmail.com
обсуждение исходный текст
Ответ на Re: postgres catalog files problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: postgres catalog files problem  (Erik Jones <erik@myemma.com>)
Список pgsql-general
Thanks Tom.
I tried it using pg_class.oid and I still have some records which r not in the pg_class files. What can I do about that?
(BTW what does relfilenode in pg_class stands for?)
Thanks again
Josh

On 9/17/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: postgres catalog files problem
Следующее
От: Erik Jones
Дата:
Сообщение: Re: postgres catalog files problem