Hello,
What is wrong with this function because the mytime variable contain the same value in each iteration:
Just like it should be.
now() gives you always the same value inside single transaction. If you need time for performance tests - use "timeofday".
Regards, Tomasz Myrta
---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend