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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Richard" <husttripper(at)vip(dot)sina(dot)com>
Cc: "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Restore from online backup, query from pg_proc, got wrong result, please see the problem!
Date: 2010-08-11 16:02:31
Message-ID: 6969.1281542551@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Richard" <husttripper(at)vip(dot)sina(dot)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 got what I want, and the result OID is just the one in the first SQL.Then I reindex pg_proc, retry the first SQL, the result is 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2010-08-11 16:08:26 Re: InitDB: Bad system call
Previous Message Richard 2010-08-11 15:52:36 Restore from online backup, query from pg_proc, got wrong result, please see the problem!