Re: RestrictionClauseSelectivity error on select

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: danny(at)lennon(dot)postino(dot)com
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: RestrictionClauseSelectivity error on select
Date: 2000-08-13 04:38:11
Message-ID: 7236.966141491@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

danny(at)lennon(dot)postino(dot)com writes:
> I am trying to do a select * from table where column like '%pattern%' ;
> from a varchar field, and am getting the error:
> RestrictionClauseSelectivity : bad value - 1.98625 error .

Short term solution: VACUUM ANALYZE to fix bogus statistical data.

Long term solution: update to a newer pgsql release. The bug that
causes creation of the bogus stats has been fixed since 6.5 or so,
IIRC.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Paul Skinner 2000-08-13 06:11:20 pg_lo_write
Previous Message danny 2000-08-13 04:09:23 RestrictionClauseSelectivity error on select