pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Christoph Berg <myon@debian.org>
To: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Stark <stark@mit.edu>
To: David G. Johnston <david.g.johnston@gmail.com>
To: thomas.berger@1und1.de, PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: pg_size_pretty, SHOW, and spaces
Date: Mon, 1 Aug 2016 14:53:28 -0400
Message-ID: <f3e021d3-d843-04a5-d816-6921309b3bf1@2ndquadrant.com> (raw)
In-Reply-To: <20160801113552.ntkqnz77l6yvwpjx@msg.df7cb.de>
References: <20160712133638.1409.99068@wrigleys.postgresql.org>
	<20160730001838.GA22405@momjian.us>
	<CAKFQuwabqqy-R76GnaCL+KWOmipC0mio=mFoZqoXqDQSw+YwTg@mail.gmail.com>
	<CAM-w4HNRZmna6BFRQYDmXV_nH26YAJD-5m2yLHQWrRh08yb9hg@mail.gmail.com>
	<794.1469889358@sss.pgh.pa.us>
	<20160730181643.GD22405@momjian.us>
	<20160801113552.ntkqnz77l6yvwpjx@msg.df7cb.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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



view thread (9+ messages)  latest in thread

Message-ID: <f3e021d3-d843-04a5-d816-6921309b3bf1@2ndquadrant.com>
Permalink:  ../f3e021d3-d843-04a5-d816-6921309b3bf1@2ndquadrant.com/
Also on:    postgresql.org/message-id/f3e021d3-d843-04a5-d816-6921309b3bf1@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, myon@debian.org, bruce@momjian.us, tgl@sss.pgh.pa.us, stark@mit.edu, david.g.johnston@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: pg_size_pretty, SHOW, and spaces
  In-Reply-To: <f3e021d3-d843-04a5-d816-6921309b3bf1@2ndquadrant.com>
  References: <20160712133638.1409.99068@wrigleys.postgresql.org> <20160730001838.GA22405@momjian.us> <CAKFQuwabqqy-R76GnaCL+KWOmipC0mio=mFoZqoXqDQSw+YwTg@mail.gmail.com> <CAM-w4HNRZmna6BFRQYDmXV_nH26YAJD-5m2yLHQWrRh08yb9hg@mail.gmail.com> <794.1469889358@sss.pgh.pa.us> <20160730181643.GD22405@momjian.us> <20160801113552.ntkqnz77l6yvwpjx@msg.df7cb.de> <f3e021d3-d843-04a5-d816-6921309b3bf1@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox