Postgres voilates Primary key .I would be able to find duplicates on database.
Also it voilates the OID.I dont know the reason .it happend only once on DB.
Please suggest me is there a soultion to avoid this on future.

I have manually deleted the records then it started to work fine. During this time.
I have lost few records in database also few autoincremented ID got lappsed.
please advice me...
...