Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUILH-0004fn-TK for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Aug 2016 18:53:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bUILH-0001Up-F6 for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Aug 2016 18:53:35 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bUILG-0001Qf-9z for pgsql-hackers@postgresql.org; Mon, 01 Aug 2016 18:53:34 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bUILD-0007tw-9H for pgsql-hackers@postgresql.org; Mon, 01 Aug 2016 18:53:33 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id BA1C32059C; Mon, 1 Aug 2016 14:53:29 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 01 Aug 2016 14:53:29 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=iphzL4ho8+HEt/j 8lYt/fcqCWNA=; b=C4wIpXXPeIBhpuorwgSgpWpkFis7PnqZX8w6SCUJ2LuJ6PD qTLec6SVzL3puj5mBQhR6OQREq3Z2bvLVZk3dEtXmU12YeoW40GS44yccsVMCAti zXT3MpyIMaD/p3erWD1wq8BwJtUb3Qh1+rIitTcmPlWdi9f26cT4VALe+MwU= X-Sasl-enc: 6sBckySjvW5nEdRbmOU2d0+EX5ZJh/As2LamjWgdNtze 1470077609 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 3D546F29F5; Mon, 1 Aug 2016 14:53:29 -0400 (EDT) Subject: Re: pg_size_pretty, SHOW, and spaces To: Christoph Berg , Bruce Momjian , Tom Lane , Greg Stark , "David G. Johnston" , thomas.berger@1und1.de, PostgreSQL-development References: <20160712133638.1409.99068@wrigleys.postgresql.org> <20160730001838.GA22405@momjian.us> <794.1469889358@sss.pgh.pa.us> <20160730181643.GD22405@momjian.us> <20160801113552.ntkqnz77l6yvwpjx@msg.df7cb.de> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Mon, 1 Aug 2016 14:53:28 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160801113552.ntkqnz77l6yvwpjx@msg.df7cb.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 8/1/16 7:35 AM, Christoph Berg wrote: > PostgreSQL uses the spaces inconsistently, though. pg_size_pretty uses spaces: > > # select pg_size_pretty((2^20)::bigint); > pg_size_pretty > ──────────────── > 1024 kB because it's "pretty" :) > SHOW does not: > > # show work_mem; > work_mem > ────────── > 1MB The original idea might have been to allow that value to be passed back into the settings system, without having to quote the space. I'm not sure, but I think changing that might cause some annoyance. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers