mirror of
https://github.com/postgres/postgres.git
synced 2025-05-22 00:02:02 -04:00
Reduce default selectivity estimates for geometric operators; it seems
the old ones were not small enough to ensure r-tree and gist indexes would get picked when available. These numbers are totally bogus anyway, but in the absence of any real estimation technique, we'd like to select indexes when available ...
This commit is contained in:
parent
83b4ab53ad
commit
39b9c9f221
@ -9,7 +9,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_selfuncs.c,v 1.18 2001/01/24 19:43:14 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_selfuncs.c,v 1.19 2001/02/15 17:55:17 tgl Exp $
|
||||||
*
|
*
|
||||||
* XXX These are totally bogus. Perhaps someone will make them do
|
* XXX These are totally bogus. Perhaps someone will make them do
|
||||||
* something reasonable, someday.
|
* something reasonable, someday.
|
||||||
@ -47,13 +47,13 @@
|
|||||||
Datum
|
Datum
|
||||||
areasel(PG_FUNCTION_ARGS)
|
areasel(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
PG_RETURN_FLOAT8(0.02);
|
PG_RETURN_FLOAT8(0.005);
|
||||||
}
|
}
|
||||||
|
|
||||||
Datum
|
Datum
|
||||||
areajoinsel(PG_FUNCTION_ARGS)
|
areajoinsel(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
PG_RETURN_FLOAT8(0.02);
|
PG_RETURN_FLOAT8(0.005);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -85,11 +85,11 @@ positionjoinsel(PG_FUNCTION_ARGS)
|
|||||||
Datum
|
Datum
|
||||||
contsel(PG_FUNCTION_ARGS)
|
contsel(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
PG_RETURN_FLOAT8(0.01);
|
PG_RETURN_FLOAT8(0.001);
|
||||||
}
|
}
|
||||||
|
|
||||||
Datum
|
Datum
|
||||||
contjoinsel(PG_FUNCTION_ARGS)
|
contjoinsel(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
PG_RETURN_FLOAT8(0.01);
|
PG_RETURN_FLOAT8(0.001);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user