Re: custom function for converting human readable sizes to bytes
В списке pgsql-hackers по дате отправления:
| От | Jim Nasby |
|---|---|
| Тема | Re: custom function for converting human readable sizes to bytes |
| Дата | |
| Msg-id | 565345D8.2090200@BlueTreble.com обсуждение исходный текст |
| Ответ на | Re: custom function for converting human readable sizes to bytes (Corey Huinker <corey.huinker@gmail.com>) |
| Ответы |
Re: custom function for converting human readable sizes to bytes
|
| Список | pgsql-hackers |
On 11/23/15 3:11 AM, Corey Huinker wrote: > +1 to both pg_size_bytes() and ::bytesize. Both contribute to making the > statements more self-documenting. The function seems like overkill to me if we have the type. Just my opinion though. I'm thinking the type could just be called 'size' too (or prettysize?). No reason it has to be tied to bytes (in particular this would work for bits too). If we're going to add this, I suppose it should support the 'i prefixes' too (GiB, MiB, etc). -- Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX Experts in Analytics, Data Architecture and PostgreSQL Data in Trouble? Get it in Treble! http://BlueTreble.com
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера