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 6BD83D1B89E for ; Fri, 5 Sep 2003 14:12:35 +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 40275-08 for ; Fri, 5 Sep 2003 11:12:08 -0300 (ADT) Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by svr1.postgresql.org (Postfix) with ESMTP id CE1E2D1B982 for ; Fri, 5 Sep 2003 11:12:03 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-30.mail.demon.net with esmtp (Exim 3.35 #1) id 19vHJn-0008sM-0U; Fri, 05 Sep 2003 15:12:07 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id C69F616B35; Fri, 5 Sep 2003 15:12:05 +0100 (BST) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 0DC4616B34; Fri, 5 Sep 2003 15:12:05 +0100 (BST) From: Richard Huxton To: Jomon Skariah , pgsql-sql@postgresql.org Subject: Re: Porting from Oracl to Postgres Date: Fri, 5 Sep 2003 15:12:04 +0100 User-Agent: KMail/1.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309051512.04518.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/31 X-Sequence-Number: 15009 On Friday 05 September 2003 05:24, Jomon Skariah wrote: > Hi, > > Thanks for your replys. > > We are facing another problem now. > > we need to find an alternative for Oracle's ADD_MONTHS in PostGres.. SELECT now() + '1 hour'::interval; SELECT now() + '2 days'::interval; SELECT now() + '3 months':: interval; See the data-types section of the manual for details. -- Richard Huxton Archonet Ltd