Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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,

			regards, tom lane

In response to

pgsql-novice by date

Next:From: Paul SkinnerDate: 2000-08-13 06:11:20
Subject: pg_lo_write
Previous:From: dannyDate: 2000-08-13 04:09:23
Subject: RestrictionClauseSelectivity error on select

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group