Re: pg primary key bug? - Mailing list pgsql-sql

From pginfo
Subject Re: pg primary key bug?
Date
Msg-id 421992FE.3030108@t1.unisoftbg.com
Whole thread Raw
In response to Re: pg primary key bug?  (Richard_D_Levine@raytheon.com)
Responses Re: pg primary key bug?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Hi,<br /> sorry, but we have the case number 3 in with the same problem.<br /> Also this time we do not find any linux
boxcrash nor pg stop or restart.<br /> The pg version is 7.4.2 on dual xeon + scsi running also RedHat 3.0 AS.<br /> In
allthe cases we are running  RedHat AS 3.0.<br /> This system was running for over 12 m. without any problems.<br /> I
sendalso the state of the problem table (also the same) and my question is:<br /> Need  we to stop using vacuum full
fornow?<br /> And can only vacuum analyze make the same problem in pg?<br /> As I understand the problem is in OS by
makingvacuum full analyze (as Tom wrote).<br /> We do not found any problems in OS and the ony solution we see is to
stopusing vacuum full analyze.<br /> Also we are using only jdbc to access pg. Is it possible that jdbc to make this
problem?<br/><br /> regards,<br /> ivan.<br /> serv117=# select oid, xmin, cmin, xmax, cmax, ctid, * from
a_constants_str;<br />     oid    |  xmin   |  cmin   |  xmax   |  cmax   |   ctid   | constname | fid | constvalue 
<br/> -----------+---------+---------+---------+---------+----------+-----------+-----+-------------<br />  760807304 |
7357839|       0 |       0 |       0 |    (0,1) | PARTID    |   0 | SOF_79<br />  760807305 | 7357839 |       0 |      
0|       0 |    (0,2) | AACCGRID  |   0 | SOF_29<br />  760807306 | 7357839 |       0 |       0 |       0 |    (0,3) |
AKLTYPID |   0 | SOF_47<br />  760807307 | 7357839 |       0 |       0 |       0 |    (0,4) | AOBLASTID |   0 |
SOF_41<br/>  760807308 | 7357839 |       0 |       0 |       0 |    (0,5) | ANMGRID   |   0 | SOF_102<br />  760807309
|7357839 |       0 |       0 |       0 |    (0,6) | LOCAID    |   0 | SOF_112<br />  760807310 | 7357839 |       0
|      0 |       0 |    (0,7) | AKLGRID   |   0 | SOF_116<br />  760807311 | 7357839 |       0 |       0 |       0 |   
(0,8)| ADARID    |   0 | SOF_33<br />  760807314 | 7357839 |       0 |       0 |       0 |   (0,11) | ASLUID    |   0 |
SOF_86<br/>  760807315 | 7357839 |       0 |       0 |       0 |   (0,12) | AUSERID   |   0 | SOF_28<br />  760807318 |
7357839|       0 |       0 |       0 |   (0,15) | ANLIZPID  |   0 | SOF_100137<br />  760807316 | 7507505 |       3
|      3 |       0 |   (0,36) | ASETUPID  |   0 | SOF_4618<br />  760807324 | 7750088 | 7766293 | 7766293 |       2 |  
(0,92)| DOCID     |   0 | SOF_836141<br />  760807319 | 7740812 |       2 |       2 |       0 |    (4,8) | ANOMID   
|  0 | SOF_31353<br />  760807325 | 7750088 |      19 |      19 |       0 |  (4,111) | DOCRID    |   0 | SOF_2067257<br
/> 760807326 | 7750088 |      41 |      41 | 7750975 |   (6,27) | DOCPLAID  |   0 | SOF_44261<br />  760807327 |
7750088|      46 |      46 | 7750975 |  (7,106) | DOCPOGPLA |   0 | SOF_58034<br />  760807324 | 7750088 | 7766293 |
7766293|       1 |  (9,107) | DOCID     |   0 | SOF_836141<br />  760807313 | 7680519 |       2 |       2 |       0 |  
(10,3)| NASTRF    |   0 | SOF_161<br />  760807312 | 7688072 |       2 |       2 |       0 |  (10,92) | AGRADID   |   0
|SOF_804<br />  760807324 | 7750088 | 7766293 | 7766293 |       1 |  (12,18) | DOCID     |   0 | SOF_836141<br />
 760807324| 7750088 | 7766293 | 7766293 |       1 |  (13,94) | DOCID     |   0 | SOF_836141<br />  760807324 | 7750088
|7766293 | 7766293 |       1 |  (15,45) | DOCID     |   0 | SOF_836141<br />  760807324 | 7750088 | 7766293 | 7766293
|      1 |   (17,4) | DOCID     |   0 | SOF_836141<br />  760807324 | 7750088 | 7766293 | 7766293 |       1 |  (18,80)
|DOCID     |   0 | SOF_836141<br />  760807324 | 7750088 | 7766293 | 7766293 |       1 |  (20,31) | DOCID     |   0 |
SOF_836141<br/>  760807324 | 7750088 | 7766293 | 7766293 |       1 | (21,109) | DOCID     |   0 | SOF_836141<br />
 760807324| 7750088 | 7766293 | 7766293 |       1 |  (23,58) | DOCID     |   0 | SOF_836141<br />  760807324 | 7750088
|7766293 | 7766293 |       1 |   (25,9) | DOCID     |   0 | SOF_836141<br />  760807324 | 7750088 | 7766293 | 7766293
|      1 |  (26,85) | DOCID     |   0 | SOF_836141<br />  760807324 | 7750088 | 7766293 | 7766293 |       1 |  (28,36)
|DOCID     |   0 | SOF_836141<br />  760807324 | 7750088 | 7766293 | 7766293 |       1 | (29,114) | DOCID     |   0 |
SOF_836141<br/>  760807317 | 7702028 |       2 |       2 |       0 |  (51,41) | AMITAID   |   0 | SOF_345<br />
 760807320| 7702064 |       2 |       2 |       0 |  (51,42) | ATRANSID  |   0 | SOF_458<br />  760807321 | 7707993
|      2 |       2 |       0 |   (57,8) | TDOCID    |   0 | SOF_546<br />  760807323 | 7753774 |       3 |       3
|      0 |   (59,7) | AKLIID    |   0 | SOF_22695<br />  760807322 | 7707993 |    2385 |    2385 |       0 |  (59,95) |
TDOCRID  |   0 | SOF_105930<br /> (37 rows)<br /><br /><br /><br /> serv117=# \d a_constants_str<br />          Table
"public.a_constants_str"<br/>    Column   |         Type          | Modifiers <br />
------------+-----------------------+-----------<br/>  constname  | character varying(30) | not null<br />  fid       
|integer               | not null<br />  constvalue | character varying(30) | <br /> Indexes:<br />    
"a_constants_str_pkey"primary key, btree (constname, fid)<br /><br /><br /><br /> Tom Lane wrote:<br /><blockquote
cite="mid9785.1108666900@sss.pgh.pa.us"type="cite"><pre wrap="">pginfo <a class="moz-txt-link-rfc2396E"
href="mailto:pginfo@t1.unisoftbg.com"><pginfo@t1.unisoftbg.com></a>writes: </pre><blockquote type="cite"><pre
wrap="">Willupgrade to 8.0 solve this type of problems ?   </pre></blockquote><pre wrap="">
 
The problem is probably not Postgres' fault at all.  I'm wondering about
disks with write cacheing enabled.  And you didn't turn off fsync,
I trust?
        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

 </pre></blockquote><br />

pgsql-sql by date:

Previous
From: Theo Galanakis
Date:
Subject: FW: Working with XML.
Next
From: Achilleus Mantzios
Date:
Subject: Timestamp with timezone question.