X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6B0FC475C98 for ; Tue, 25 Mar 2003 18:34:54 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id DB55A474E44 for ; Tue, 25 Mar 2003 18:34:43 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.8/8.12.8) with ESMTP id h2PNYkub001435; Tue, 25 Mar 2003 18:34:46 -0500 (EST) To: "Chad Thompson" Cc: "Thomas Good" , "Postgres SQL List" Subject: Re: Concatenation Snafu In-reply-to: <049c01c2f322$69ee2e90$32021aac@chad> References: <049c01c2f322$69ee2e90$32021aac@chad> Comments: In-reply-to "Chad Thompson" message dated "Tue, 25 Mar 2003 16:01:03 -0700" Date: Tue, 25 Mar 2003 18:34:45 -0500 Message-ID: <1434.1048635285@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/568 X-Sequence-Number: 12606 "Chad Thompson" writes: > The assumtion that char and varchar can be compared is gone. The real problem is that we have too dang many || operators; there's no reason to have char||char, varchar||varchar, *and* text||text. The parser can't decide which of the first two to prefer, so it punts. If we got rid of both and left only text||text, all would be well. Thomas is wrong to claim that this used to behave differently; all versions I have handy to test, back to 7.0, give the same error. regards, tom lane