X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id D8F9D9FA5F0 for ; Thu, 20 Jul 2006 06:32:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 36395-08 for ; Thu, 20 Jul 2006 09:32:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from gauss.credativ.com (ipx11302.ipxserver.de [212.112.227.254]) by postgresql.org (Postfix) with ESMTP id 32B159FA502 for ; Thu, 20 Jul 2006 06:32:45 -0300 (ADT) Received: from bell.credativ.de (p5089713D.dip.t-dialin.net [80.137.113.61]) (using TLSv1 with cipher EXP1024-RC4-SHA (56/128 bits)) (No client certificate requested) by gauss.credativ.com (Postfix) with ESMTP id C1CB4D791B; Thu, 20 Jul 2006 11:32:38 +0200 (CEST) From: Peter Eisentraut To: pgsql-admin@postgresql.org Subject: Re: biginteger to timestamp Date: Thu, 20 Jul 2006 11:32:30 +0200 User-Agent: KMail/1.9.1 Cc: LiveShell References: <928fe9b50607200226w3c9eca67h5e0e5d9a4466aeef@mail.gmail.com> In-Reply-To: <928fe9b50607200226w3c9eca67h5e0e5d9a4466aeef@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607201132.31207.peter_e@gmx.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/163 X-Sequence-Number: 22409 Am Donnerstag, 20. Juli 2006 11:26 schrieb LiveShell: > I want to convert biginteger and integer data type to timestamp > data type. That depends mostly on what kind of meaning you intend to attach to an integer N. If you want seconds since 1970, you could do x * interval '1 second' + timestamp '1970-01-01' For other meanings, adjust as necessary. -- Peter Eisentraut http://developer.postgresql.org/~petere/