Silvio Matthes <silvio(dot)matthes(at)xcom(dot)de> writes:
> 2.) Would it be wiser to change all the empty values to some placeholder
> (e.g. 'empty')?
You're missing the point entirely. '' is being treated specially
because the planner can see from the column statistics that it occurs a
lot. Substituting a different value would simply move the problem over
to that value (as soon as you'd done ANALYZE, anyway).
regards, tom lane
In response to
pgsql-general by date
|Next:||From: Jeff Amiel||Date: 2004-08-24 17:08:03|
|Subject: Re: pg_stat_activity versus ps|
|Previous:||From: Tom Lane||Date: 2004-08-24 16:52:56|
|Subject: Re: select ... where <column>='' does a seqscan [auf Viren |