Skip site navigation (1) Skip section navigation (2)

Re: Export user visible function to make use of convert_to_scalar

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: PostgreSQL-development Hackers <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Export user visible function to make use of convert_to_scalar
Date: 2007-07-30 15:00:18
Message-ID: 20732.1185807618@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> 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.

This is an astonishingly bad idea, as it exposes and thereby sets in
stone one of the worst, most in-need-of-rethinking areas in selfuncs.c.

> I didn't add any documentation because I couldn't find a reasonable place to
> put such a low level function.

No kidding.

> I don't think we would want to encourage
> applications to use it

The way to not encourage it is to not provide it.

			regards, tom lane

In response to

Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2007-07-30 15:11:29
Subject: Re: use binary mode on syslog pipe on windows to avoid upsetting chunking protocol
Previous:From: Gregory StarkDate: 2007-07-30 14:41:39
Subject: Export user visible function to make use of convert_to_scalar

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group