Received: from trends.net (root@clio.trends.ca [209.47.148.2]) by hub.org (8.9.3/8.9.3) with ESMTP id XAA01128; Mon, 14 Jun 1999 23:53:17 -0400 (EDT) (envelope-from vikrant@chemquick.com) Received: from chemquick.com (root@[202.170.29.67]) by trends.net (8.8.8/8.8.8) with ESMTP id XAA14054; Mon, 14 Jun 1999 23:05:39 -0400 (EDT) Received: from chemquick.com ([202.170.29.126]) by chemquick.com (8.8.7/8.8.7) with ESMTP id KAA16517; Tue, 15 Jun 1999 10:59:19 +0800 Message-ID: <3765C5B3.C05DC56D@chemquick.com> Date: Tue, 15 Jun 1999 11:17:08 +0800 From: Vikrant Rathore Reply-To: vikrant@chemquick.com Organization: NeuroNet X-Mailer: Mozilla 4.6 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-sql@postgreSQL.org Subject: Mail about typecast Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Dear friends, I want to run a query : vikrant=> select date_part('epoch','12 hours'::timespan)::float4; It returns a error message ERROR: function dtof(float8) does not exist But i want to use typecast since the result of this query will be used to update a field of type float4. I have checked the pg_proc system table it has a function dtof with float8 as argument i have checked the list of functions also and 'dtof(float8)' is shown in that list also. can anyone solve this problem. I can solve the problem by using a c program but i want to know when the function dtof(float8) is there in pg_proc table then why it is not doing a typecasting. Thanks in advance for your kind suggestion. Thanks & regards, Vikrant.