Re: Restore from online backup, query from pg_proc, got wrong result, please see the problem!

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Restore from online backup, query from pg_proc, got wrong result, please see the problem!
Дата
Msg-id 6969.1281542551@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Restore from online backup, query from pg_proc, got wrong result, please see the problem!  ("Richard" <husttripper@vip.sina.com>)
Список pgsql-general
"Richard" <husttripper@vip.sina.com> writes:
> After restoring from online backup and archive xlog files, I query pg_proc using SQL: select * from pg_proc where
proname= 'xxx' and oid = XXX. I got no result back, but when using SQL:select * from pg_proc where proname = 'xxx', I
gotwhat I want, and the result OID is just the one in the first SQL.Then I reindex pg_proc, retry the first SQL, the
resultis correct. 
> Any one konw what is the matter?  How can I solve this without reindexing the table!

Well, apparently you did the restore incorrectly, leading to an
inconsistent index on pg_proc.  Since you proided no details about how
you did that, it's hard to say more.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: "Richard"
Дата:
Сообщение: Restore from online backup, query from pg_proc, got wrong result, please see the problem!
Следующее
От: 3dmashup
Дата:
Сообщение: Re: C++ User-defined functions