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 DB7F1D1B97B for ; Fri, 27 Feb 2004 17:38:54 +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 58161-03 for ; Fri, 27 Feb 2004 13:38:43 -0400 (AST) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 7E900D1E183 for ; Fri, 27 Feb 2004 13:38:38 -0400 (AST) Received: (qmail 23045 invoked by uid 500); 27 Feb 2004 17:40:59 -0000 Date: Fri, 27 Feb 2004 11:40:59 -0600 From: Bruno Wolff III To: Brian Knox Cc: pgsql-sql@postgresql.org Subject: Re: Convert INT to INTERVAL? Message-ID: <20040227174059.GB18900@wolff.to> Mail-Followup-To: Brian Knox , pgsql-sql@postgresql.org References: <403F762B.20002@aol.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <403F762B.20002@aol.net> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/376 X-Sequence-Number: 17066 On Fri, Feb 27, 2004 at 11:54:04 -0500, Brian Knox wrote: > Is it possible within pl/pgsql, to convert an integer to an interval in > months? IE, if num_months is an INT set to 48, can it be converted to an > interval? Can you use num_months * '1 month'::interval ?