From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> |
Cc: | "The Hermit Hacker" <scrappy(at)hub(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pg_group_name_index corrupt? |
Date: | 2000-05-04 21:49:01 |
Message-ID: | 28775.957476941@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
"Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> writes:
> Why does pg_group exist under $PGDATA though the indexes exist
> under each $PGDATA/base/db_name ?
> Could it be consistent on all databases ?
Oh my, I think you've got it! The indexes must be SharedSystemRelations!!
Backend 1 in database regression:
regression=# vacuum analyze pg_group;
VACUUM
Backend 2 in database other is also happy:
other=# vacuum analyze pg_group;
VACUUM
Now create a group with backend 1:
regression=# create group g;
CREATE GROUP
Backend 1 sees the index entries:
regression=# vacuum analyze pg_group;
VACUUM
But backend 2 doesn't:
other=# vacuum analyze pg_group;
NOTICE: Index pg_group_sysid_index: NUMBER OF INDEX' TUPLES (0) IS NOT THE SAME AS HEAP' (1).
Recreate the index.
NOTICE: Index pg_group_name_index: NUMBER OF INDEX' TUPLES (0) IS NOT THE SAME
AS HEAP' (1).
Recreate the index.
VACUUM
pg_shadow would have the same problem if it had indices, which I thought
it did but they seem to have been disabled.
Can you say "one more initdb"? I knew you could...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-05-04 22:09:35 | Re: pg_group_name_index corrupt? |
Previous Message | Hiroshi Inoue | 2000-05-04 21:13:18 | RE: pg_group_name_index corrupt? |