Re: [PORTS] Port Bug Report: ERROR: RestrictionClauseSelectivity: bad value 2.213087 - Mailing list pgsql-ports

From Bruce Momjian
Subject Re: [PORTS] Port Bug Report: ERROR: RestrictionClauseSelectivity: bad value 2.213087
Date
Msg-id 199903160418.XAA29900@candle.pha.pa.us
Whole thread Raw
In response to Port Bug Report: ERROR: RestrictionClauseSelectivity: bad value 2.213087  (Unprivileged user <nobody>)
List pgsql-ports
> --------------------
> All but some spurious select queries with comparisons against
> text fields return a RestrictionClauseSelectivity error.
>
> src/backend/optimizer/util/plancat.c:
> I modified the function "restriction_selectivity"
> to accept values from 0.0 - 3.0, instead 0.0 to 1.0...
>
> This gets rid of the error message, but it probably doesn't
> make for a good engine.
>

This is fixed in 6.5 beta, due out soon.  Do a vacuum analyze on the
table, and it will be fixed.  The problem is you did an alter table add,
and there was a bug there.

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-ports by date:

Previous
From: Unprivileged user
Date:
Subject: Port Bug Report: ERROR: RestrictionClauseSelectivity: bad value 2.213087
Next
From: The Hermit Hacker
Date:
Subject: Re: [PORTS] Port Bug Report: The compiler bombs at pgc.l and fails to finish compiling