Re: How to inject knowledge into a Postgres database - Mailing list pgsql-general

From han.holl@informationslogik.nl
Subject Re: How to inject knowledge into a Postgres database
Date
Msg-id 200510131214.20775.han.holl@informationslogik.nl
Whole thread Raw
In response to Re: How to inject knowledge into a Postgres database  ("Jim C. Nasby" <jnasby@pervasive.com>)
Responses Re: How to inject knowledge into a Postgres database
List pgsql-general
On Tuesday 11 October 2005 01:50, Jim C. Nasby wrote:
> What's the datatype on naamvrouw? Notice that it's being casted to text,
> which means an index on that column won't be used.
>
Datatype is text. My problem is that I want it to use the date of birth index.

I've increased the statistics to 1000, and only occasionally, because of the
very uneven distribution of surnames, the planner does the wrong thing.
(Thinking that only 14 rows will match 'blaa' instead of 767.)

I've tried to set an even higher limit, but 1000 seems to be the maximum.
Is this hardcoded, or can I set a higher maximum somewhere ?

If the only penalty is slower analyzing, I don't care: we analyze at night
when these system are idle.

Cheers,

Han Holl

pgsql-general by date:

Previous
From: Andrew Kelly
Date:
Subject: Re: Limitations of PostgreSQL
Next
From: "Josephine E. de Castro"
Date:
Subject: Question about stored procedures