Hi, I already cross posted this to bug and admin but I find the message
neather in admin and in bugs, anyway I repost it:
This problem is the second time that happen, the first time
Tom Lane suggest me that may be an impromper db shut down
did this, but this time I'm sure that is not the scene.
Here is the query:
empdb=# select oid,id_user_traffic, id_user from user_traffic where id_user
= 4338;
oid | id_user_traffic | id_user
---------+-----------------+---------
1438117 | 11111 | 4338
1438117 | 11111 | 4338
1438117 | 11111 | 4338
1438117 | 11111 | 4338
1438117 | 11111 | 4338
1438117 | 11111 | 4338
1438117 | 11111 | 4338
1438117 | 11111 | 4338
1438117 | 11111 | 4338
1438117 | 11111 | 4338
1432439 | 2884 | 4338
1432446 | 2885 | 4338
1432455 | 2886 | 4338
1432987 | 6780 | 4338
1433032 | 6781 | 4338
1434031 | 5976 | 4338
1435875 | 6782 | 4338
1439351 | 11109 | 4338
1437999 | 11110 | 4338
1438117 | 11111 | 4338
1438117 | 11111 | 4338
(21 rows)
empdb=# select oid,id_user_traffic,id_user from user_traffic where
id_user_traffic = 11111;
oid | id_user_traffic | id_user
---------+-----------------+---------
1438117 | 11111 | 4338
(1 row)
I think that this select return one row just because Postgres know
that id_user_traffic is a primary key!
This time I know that this happen just after a vacuum, you'll find attached
the log about the
process that did the vacuum.
PS:
empdb=# select version();
version
-------------------------------------------------------------
PostgreSQL 7.3.2 on i686-pc-linux-gnu, compiled by GCC 2.96
(1 row)
begin 666 f2.zip
M4$L#!!0````(`&"8GBY,,FKAS1<``'[N```&````9C(N;&]GQ5W?D]LVDGZ_
MOX)OFU2=)P3X>U)Y<!S?ENNRZUQBIVIW*ZOB2/0,-Y*H)2G'WK_^0&I(D6RP
M&RT2Y9?$'H^^5G\--!J-;N#EJ70\UW&C>Q'<NZY3[4KIG(JJ?BRSZA_"#\/?
M[AWU_\2-I?N;\^/;/]\[SK8X'K-MG1='I\RV6?XQV]T[3^I#W_UC7VS3_6__
M]9(!*S2PZ;E^*LK\/PWPN<K*[W8/Z>Z0'YU=6J</:95]EQU.NP>6'/F;\\/K
M[]\WDK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