X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A065AD1B915 for ; Wed, 27 Aug 2003 01:27:47 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 68577-07 for ; Wed, 27 Aug 2003 01:27:37 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id AC9D4D1B8C5 for ; Wed, 27 Aug 2003 01:27:36 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h7R4RK5H008861; Wed, 27 Aug 2003 00:27:20 -0400 (EDT) To: Bruce Momjian Cc: Marco Vezzoli , sql Subject: Re: postgres 7.1.3: why does the query plan ignore indexes? In-reply-to: <200308270422.h7R4M8l00697@candle.pha.pa.us> References: <200308270422.h7R4M8l00697@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Wed, 27 Aug 2003 00:22:08 -0400" Date: Wed, 27 Aug 2003 00:27:20 -0400 Message-ID: <8860.1061958440@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/315 X-Sequence-Number: 14931 Bruce Momjian writes: > Tom Lane wrote: >> Bruce Momjian writes: >>> Should we consider adding some warning when someone creates an index on >>> an int2 column? >> >> I don't think so. Better to expend our energy on solving the >> fundamental problem. > I am thinking _until_ we fix the problem. Is it actually hard to add? Why int2 in particular? And not int8? float4? Or numeric, float8, or int4 in the wrong contexts? How about bpchar or varchar? I figure we can waste at least as much time arguing about when/where/why to issue warnings as it will take to solve the real problem. regards, tom lane