X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E5F2A52843 for ; Wed, 1 Jun 2005 17:42:27 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17658-06 for ; Wed, 1 Jun 2005 20:42:19 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by svr1.postgresql.org (Postfix) with ESMTP id 51B0B5287E for ; Wed, 1 Jun 2005 17:42:14 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 68so721943wra for ; Wed, 01 Jun 2005 13:42:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=sdk/0KMjAMh4mOmDPm6hqOEuXWqcD9/3d6AMEPa3/G2ELjzLQ+R+ZCjdWIeiiyfh76EdExMo8ISB9GT/exXyz7jUsDsAf3KDfs2Vr74Z58LmhJASqVwEMrJQLE2akvS4SX7s5UQiGUwD+uxkoF04SbH9qf5k6jNXegIJmGYSaNw= Received: by 10.54.39.69 with SMTP id m69mr108148wrm; Wed, 01 Jun 2005 13:42:16 -0700 (PDT) Received: by 10.54.46.5 with HTTP; Wed, 1 Jun 2005 13:42:16 -0700 (PDT) Message-ID: Date: Wed, 1 Jun 2005 16:42:16 -0400 From: Fernando Grijalba Reply-To: Fernando Grijalba To: pgsql-sql@postgresql.org Subject: Convert int to hex Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.398 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200506/12 X-Sequence-Number: 21613 I want to be able to change an int4 from a sequence and store it as varchar in the database as a hex number. Is this possible? Thank you, Fernando