Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 2B69E1337D3E for ; Sun, 8 May 2011 15:11:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 55175-03-2 for ; Sun, 8 May 2011 18:11:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 6CA511337BD7 for ; Sun, 8 May 2011 15:07:42 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p48I7fnP087262 for ; Sun, 8 May 2011 18:07:41 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p48I7fgA087261; Sun, 8 May 2011 18:07:41 GMT (envelope-from www) Date: Sun, 8 May 2011 18:07:41 GMT Message-Id: <201105081807.p48I7fgA087261@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6015: to_hex and negative integer From: "Marco Spiga" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201105/47 X-Sequence-Number: 30186 The following bug has been logged online: Bug reference: 6015 Logged by: Marco Spiga Email address: ctxspi@gmail.com PostgreSQL version: 8.3.12 Operating system: Ubuntu Linux on kernel version 2.6.30.5 Description: to_hex and negative integer Details: Hi! First, thank for your excellent software. My question is: Why when I try: SELECT to_hex(-1) it give me a strange result: ffffffff Thanks Again