X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3EFFBD1B51E for ; Fri, 19 Sep 2003 15:42:42 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 73789-07 for ; Fri, 19 Sep 2003 12:42:31 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 3D536D1B4FD for ; Fri, 19 Sep 2003 12:42:31 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8JFgUiP020528; Fri, 19 Sep 2003 11:42:30 -0400 (EDT) To: "Kumar" Cc: "psql" Subject: Re: Problem with timestamp - Pls help In-reply-to: <038501c37eaf$ff68a310$7502a8c0@hdsc.com> References: <038501c37eaf$ff68a310$7502a8c0@hdsc.com> Comments: In-reply-to "Kumar" message dated "Fri, 19 Sep 2003 18:44:36 +0530" Date: Fri, 19 Sep 2003 11:42:30 -0400 Message-ID: <20527.1063986150@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/203 X-Sequence-Number: 15181 "Kumar" writes: > I wanted to update one column of my table with now() or timestamp. And I wa= > nt that timestamp of format ------------------------ > 2003-09-19 18:39:08.13 It sounds like you simply want to limit the fractional precision of the value. Why don't you just declare the column as timestamp(2) ? All this fooling around with substrings is inefficient and doesn't have much to do with your real intent anyhow. regards, tom lane