Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz> writes:
>> You probably want now() instead of that function.
> I can't use now() or others because I need actual time in transaction.
Just cast the result of timeofday() to timestamp (with time zone, likely).
regards, tom lane