Export user visible function to make use of convert_to_scalar

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: PostgreSQL-development Hackers <pgsql-patches(at)postgresql(dot)org>
Subject: Export user visible function to make use of convert_to_scalar
Date: 2007-07-30 14:41:39
Message-ID: 873az69cnw.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Attached is a patch which implements, as discussed briefly on -hackers, a
user-visible function to get at the information that convert_to_scalar uses to
generate selectivity estimates.

The main use case for this is for tools such as pgadmin which want to make
sense of the histograms, they need to know where and how tall to draw each
region of the histogram.

I didn't add any documentation because I couldn't find a reasonable place to
put such a low level function. I don't think we would want to encourage
applications to use it unless they're trying to work with statistics tables
anyways so documenting it on the comparison operators page -- the only page
where it seems it would make sense -- would be a bad idea.

Attachment Content-Type Size
pg_convert_to_scalar.patch.gz application/octet-stream 1.1 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-07-30 15:00:18 Re: Export user visible function to make use of convert_to_scalar
Previous Message Andrew Dunstan 2007-07-30 12:41:38 use binary mode on syslog pipe on windows to avoid upsetting chunking protocol