Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 7D31A476299 for ; Wed, 8 May 2002 17:23:11 -0400 (EDT) Received: from smtp-30.ig.com.br (unknown [200.226.132.180]) by postgresql.org (Postfix) with SMTP id 53EEC475EB0 for ; Wed, 8 May 2002 16:48:34 -0400 (EDT) Received: (qmail 25620 invoked from network); 8 May 2002 20:48:30 -0000 Received: from unknown (HELO localhost) (200.226.132.31) by smtp-30.ig.com.br with SMTP; 8 May 2002 20:48:30 -0000 Date: Wed, 8 May 2002 17:48:34 -0300 To: pgsql-sql@postgresql.org From: Edipo Elder Fernandes de Melo Cc: X-Originating-IP: [200.225.157.214]200.19.175.3 X-Mailer: InMail by Insite - www.insite.com.br X-user: edipoelder@ig.com.br Subject: Migrating from 7.1 to 7.2 Message-Id: <20020508204834.53EEC475EB0@postgresql.org> X-Archive-Number: 200205/60 X-Sequence-Number: 7696 Hello, I wrote a plpgsql procedure that returns the executition time of it, like this: create procedure myProc() returns time as ' declare v_start time; v_end time; begin select timeofday()::timestamp::time into v_start; (do some work) select timeofday()::timestamp::time into v_end; return v_end - v_start; end;' language 'plpgsql' This worked fine at 7.1, but now, in 7.2.1, isn't working. In 7.1, i got: template1=# select timeofday()::time; ERROR: Bad time external representation 'Wed May 08 17:19:15.389569 2002 BRT' template1=# select timeofday()::timestamp::time; ?column? ---------- 17:19:20 (1 row) In 7.2.1, i got: bench=# select timeofday()::time; ERROR: Bad time external representation 'Wed May 08 17:20:37.891559 2002 BRT' bench=# select timeofday()::timestamp::time; ERROR: Cannot cast type 'timestamp with time zone' to 'time without time zone' I tried change time zones, date style, etc... but I didn't fix it. Thanks for any help, Edipo Elder [edipoelder@ig.com.br] _________________________________________________________________________ Você podia estar baixando sua musica predileta, enquanto lia esse e-mail. Não perca tempo, tenha acesso rápido a internet com o Super iG. http://registro.ig.com.br/superig