Gregory Stark <[EMAIL PROTECTED]> 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 ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match