Bruce Momjian <[EMAIL PROTECTED]> writes:
> Tom Lane wrote:
>> Bruce Momjian <[EMAIL PROTECTED]> 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

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
      joining column's datatypes do not match

Reply via email to