Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goWS3-0006mi-JT for pgsql-general@arkaria.postgresql.org; Tue, 29 Jan 2019 16:41:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goWS1-0000Ys-U4 for pgsql-general@arkaria.postgresql.org; Tue, 29 Jan 2019 16:41:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goWS1-0000Yl-Lc for pgsql-general@lists.postgresql.org; Tue, 29 Jan 2019 16:41:29 +0000 Received: from mx2a.mailbox.org ([2001:67c:2050:104:0:2:25:2] helo=mx2.mailbox.org) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goWRz-0000Pn-8x for pgsql-general@lists.postgresql.org; Tue, 29 Jan 2019 16:41:29 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 3EFACA13E1; Tue, 29 Jan 2019 17:41:24 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id 6bmQfYJNoTJL; Tue, 29 Jan 2019 17:41:22 +0100 (CET) Message-ID: <20ce81e922adf485fe745f40b1da596de53a4c08.camel@cybertec.at> Subject: Re: SELECT of pseudo hex value gives unexpected result From: Laurenz Albe To: "Gunnar \"Nick\" Bluth" , "pgsql-general@lists.postgresql.org" Date: Tue, 29 Jan 2019 17:41:21 +0100 In-Reply-To: <3edb0e31-8fea-3cf7-477c-7554ea25975e@pro-open.de> References: <3edb0e31-8fea-3cf7-477c-7554ea25975e@pro-open.de> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Gunnar "Nick" Bluth wrote: > Tried > SELECT 0x5e73266725; > > and received: > -[ RECORD 1 ]-- > x5e73266725 | 0 > > That was not what I expected... is this expected/documented behaviour? Looks like you don't need a space between a number literal and the column alias. I don't see any problem with that. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com