Received: from candle.pha.pa.us (pgman@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id MAA71592; Mon, 3 Jan 2000 12:21:12 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id MAA16518; Mon, 3 Jan 2000 12:20:18 -0500 (EST) From: Bruce Momjian Message-Id: <200001031720.MAA16518@candle.pha.pa.us> Subject: Re: [ADMIN] restriction clause selectivity bad valueu In-Reply-To: from Marcio Macedo at "Jan 3, 2000 03:15:50 pm" To: Marcio Macedo Date: Mon, 3 Jan 2000 12:20:18 -0500 (EST) CC: "Wallingford, Ted" , "'pgsql-sql@hub.org'" , "'pgsql-admin@hub.org'" X-Mailer: ELM [version 2.4ME+ PL66 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit [Charset ISO-8859-1 unsupported, filtering to ASCII...] > > I got an error like this after use alter table to add a column > > when I do a select I got this: > > > database=> select * from table where column = 1; > ERROR: RestrictionClauseSelectivity: bad value 2.452260 > > but if i do : > select * from table where column > 1; > it goes ok. VACUUM ANALYZE the table. 6.5.* should not have this problem. -- 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