CURRENT_TIME

From: "FERREIRA William (COFRAMI)" <william(dot)ferreira(at)airbus(dot)com>
To: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: CURRENT_TIME
Date: 2005-03-15 14:21:10
Message-ID: 1904E3EB39448246A7ECB76DF34A70B00143B486@TOCOMEXC03
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi

i need to know the execution time of a part of my pl/pgsql code

so, i tried to use CURRENT_TIME :

t_time_d TIME;
t_time_f TIME;
t_diff TIME;

select CURRENT_TIME into t_time_d;

//the traitment


select CURRENT_TIME into t_time_f;
t_diff=t_time_f-t_time_d;
raise notice 'DEBUT : % | FIN : % | DIFF : % | POUR :
%',t_time_d,t_time_f,t_diff;

my function is recursive and the problem is that i always get the same
result for each iteration
t_time_d is set at the first iteration and doesn't change

thanks

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Gagnon 2005-03-15 14:26:38 Re: Problem with special character �
Previous Message Martijn van Oosterhout 2005-03-15 14:19:46 Re: Filesystem level backup and 32 / 64 bit