Lists: | pgsql-bugs |
---|
From: | "cool shower" <coolshower2008(at)yahoo(dot)co(dot)jp> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #5421: pg_attribute broken |
Date: | 2010-04-14 11:02:49 |
Message-ID: | 201004141102.o3EB2nA7014039@wwwmaster.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 5421
Logged by: cool shower
Email address: coolshower2008(at)yahoo(dot)co(dot)jp
PostgreSQL version: 8.1.8
Operating system: debian 2.6.18-6-686
Description: pg_attribute broken
Details:
We use PostgreSQL Databse on Hospital Information System in Japan.
In case of normal condition(Not busy, Not Backup, Not Start up and Not
Shutdown),
Suddenly, PostgreSQL outputs error message and "pg_attribute" catalog file
is broken as bellow.
Could you sent it to us A.S.A.P.
<Environment>
debian debian 2.6.18-6-686 / PostgreSQL 8.1.8
<Error message>
invalid attribute number 0 for tbl_syuday
<pg_attribute>
attrelid addname atttypid attstattarget attlen
attnum
45762 tableoid 26 0 4
-7
45762 cmax 29 0 4
-6
45762 xmax 28 0 4
-5
45762 cmin 29 0 4
-4
45762 xmin 28 0 4
-3
45762 ctid 27 0 6
-1
45762 santeiflg18_4 0 0 0
0 (?)
45762 nyugaikbn 1042 -1 -1
1
45762 ptid 1700 -1 -1
2
.
.(Omission)
.
45762 santeiflg17_1 1700 -1 -1
343
45762 ftmoney17_1 1700 -1 -1
344
45762 ftmoney18_4 1700 -1 -1
380 (345..379 are deleted?)
45762 comptfn18_4 1700 -1 -1
381
.
.(Omission)
.
Q1:Does anything have same reports ?
Q2:Does anything have repair patches ?
From: | "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> |
---|---|
To: | <pgsql-bugs(at)postgresql(dot)org>, "cool shower" <coolshower2008(at)yahoo(dot)co(dot)jp> |
Subject: | Re: BUG #5421: pg_attribute broken |
Date: | 2010-04-14 16:13:31 |
Message-ID: | 4BC5A35B02000025000308A4@gw.wicourts.gov |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
"cool shower" <coolshower2008(at)yahoo(dot)co(dot)jp> wrote:
> PostgreSQL version: 8.1.8
> Q2:Does anything have repair patches ?
You may want to review the fixes between 8.1.8 and the latest 8.1
bug fix release, which is 8.1.20:
http://www.postgresql.org/docs/8.1/static/release.html
Perhaps one of these fixes would help. I'd certainly recommend
applying the bug-fix update and seeing if the problem is still
there.
-Kevin
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "cool shower" <coolshower2008(at)yahoo(dot)co(dot)jp> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #5421: pg_attribute broken |
Date: | 2010-04-14 19:18:51 |
Message-ID: | 10125.1271272731@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
"cool shower" <coolshower2008(at)yahoo(dot)co(dot)jp> writes:
> <pg_attribute>
> attrelid addname atttypid attstattarget attlen
> attnum
> 45762 santeiflg18_4 0 0 0
> 0 (?)
What do you mean by "0 (?)"? There shouldn't be any entries in
pg_attribute with attnum zero. The row looks pretty completely bogus
otherwise, so I wonder if it's something you put in manually in a
misguided effort to fix whatever the real problem is.
As Kevin noted, 8.1.8 is really ancient, so you ought to update to
8.1.something-recent before you spend much more time on this.
regards, tom lane