Re: pg_size_pretty, SHOW, and spaces
| От | Peter Eisentraut |
|---|---|
| Тема | Re: pg_size_pretty, SHOW, and spaces |
| Дата | |
| Msg-id | f3e021d3-d843-04a5-d816-6921309b3bf1@2ndquadrant.com обсуждение исходный текст |
| Ответ на | pg_size_pretty, SHOW, and spaces (Christoph Berg <myon@debian.org>) |
| Ответы |
Re: pg_size_pretty, SHOW, and spaces
|
| Список | pgsql-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
В списке pgsql-hackers по дате отправления: