pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Marco Vezzoli <marco.vezzoli@st.com>
Cc: sql <pgsql-sql@postgresql.org>
Subject: Re: postgres 7.1.3: why does the query plan ignore indexes?
Date: Wed, 27 Aug 2003 00:27:20 -0400
Message-ID: <8860.1061958440@sss.pgh.pa.us> (raw)
In-Reply-To: <200308270422.h7R4M8l00697@candle.pha.pa.us>
References: <200308270422.h7R4M8l00697@candle.pha.pa.us>

Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Tom Lane wrote:
>> Bruce Momjian <pgman@candle.pha.pa.us> 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



view thread (8+ messages)

Message-ID: <8860.1061958440@sss.pgh.pa.us>
Permalink:  ../8860.1061958440@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8860.1061958440@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, marco.vezzoli@st.com
  Subject: Re: postgres 7.1.3: why does the query plan ignore indexes?
  In-Reply-To: <8860.1061958440@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox