Re: Export user visible function to make use of convert_to_scalar

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Export user visible function to make use of convert_to_scalar
Дата
Msg-id 87bqds1jaz.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Export user visible function to make use of convert_to_scalar  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Export user visible function to make use of convert_to_scalar
Список pgsql-patches
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> Gregory Stark <stark@enterprisedb.com> writes:
>> "Tom Lane" <tgl@sss.pgh.pa.us> writes:
>>> When complaining I hadn't read the pghackers thread in which you
>>> suggested this, and now that I'm caught up on email I remain
>>> unconvinced.  What do you need convert_to_scalar for in order to display
>>> the pg_statistic histogram?  You've already got the underlying data.
>
>> Then the charting tool would have to duplicate all the same code that
>> convert_to_scalar has to figure out what to do with the data.
>
> How so?  The entries in the histogram are equidistant by definition.

Huh? They have equal number of values between them, they're not equidistant in
the scalar space. So the area of each bar should be the same but the width
would be proportional to the width of the bucket and the height inversely
proportional.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com


В списке pgsql-patches по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Export user visible function to make use of convert_to_scalar
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Export user visible function to make use of convert_to_scalar