X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1FB05D1D2F7 for ; Tue, 3 Feb 2004 15:51:45 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 82875-04 for ; Tue, 3 Feb 2004 11:51:45 -0400 (AST) Received: from physics.gmu.edu (physics.gmu.edu [129.174.44.73]) by svr1.postgresql.org (Postfix) with ESMTP id 6E988D1D278 for ; Tue, 3 Feb 2004 11:51:42 -0400 (AST) Received: from physics.gmu.edu (localhost.localdomain [127.0.0.1]) by physics.gmu.edu (8.12.8/8.12.8) with ESMTP id i13FpkBp028614 for ; Tue, 3 Feb 2004 10:51:46 -0500 From: mohan@physics.gmu.edu Received: (from apache@localhost) by physics.gmu.edu (8.12.8/8.12.8/Submit) id i13FpkPg028612; Tue, 3 Feb 2004 10:51:46 -0500 X-Authentication-Warning: physics.gmu.edu: apache set sender to mohan@physics.gmu.edu using -f Received: from 138.88.163.115 (SquirrelMail authenticated user mohan) by physics.gmu.edu with HTTP; Tue, 3 Feb 2004 10:51:45 -0500 (EST) Message-ID: <61599.138.88.163.115.1075823505.squirrel@physics.gmu.edu> Date: Tue, 3 Feb 2004 10:51:45 -0500 (EST) Subject: date function problem To: X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/31 X-Sequence-Number: 16722 Hi All I have an expiration_date column in my table with data type as timestamp. I need to set that as one year after the current time. how do i do that. I am getting a casting problem whenever i try something. something like now()+ 1 year. Please let me know --mohan