Re: custom function for converting human readable sizes to bytes
От | Robert Haas |
---|---|
Тема | Re: custom function for converting human readable sizes to bytes |
Дата | |
Msg-id | CA+TgmoZMbwq-Lb_E06pDXttUf9LhWu2q+7JLqev2nphbEvTFCg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: custom function for converting human readable sizes to bytes (Pavel Stehule <pavel.stehule@gmail.com>) |
Ответы |
Re: custom function for converting human readable sizes to bytes
Re: custom function for converting human readable sizes to bytes Re: custom function for converting human readable sizes to bytes |
Список | pgsql-hackers |
On Mon, Jan 4, 2016 at 10:17 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote: > [ new patch ] + case '-': + ereport(ERROR, + (errcode(ERRCODE_INVALID_PARAMETER_VALUE), + errmsg("size cannot be negative"))); Why not? I bet if you copy any - sign to the buffer, this will Just Work. + if ( conv->base_unit == GUC_UNIT_KB && Whitespace. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления: