Thanx to Richard Huxton and Csaba.
I will upgrade PostgreSQL up to 8.0 and use:> 2. Catch the error on the insert and try the update again. This> requires version 8.0 or higher.
Best regards