Venki Ramachandran <venki_ramachandran(at)yahoo(dot)com> writes:
> Replacing current_timestamp() withtransaction_timestamp() andstatement_timestamp() did not help!!!.
You did not read the documentation you were pointed to. Use
clock_timestamp().
regards, tom lane