X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CEEFEDA786 for ; Wed, 19 Oct 2005 19:45:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 59791-02 for ; Wed, 19 Oct 2005 22:44:58 +0000 (GMT) Received: from smtp017.mail.yahoo.com (smtp017.mail.yahoo.com [216.136.174.114]) by svr1.postgresql.org (Postfix) with SMTP id 26CC5DA750 for ; Wed, 19 Oct 2005 19:44:59 -0300 (ADT) Received: (qmail 66395 invoked from network); 19 Oct 2005 22:44:58 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=Yahoo.com; h=Received:Message-ID:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=4OOj32iJgeMMPqMg+zQfmwfj/FcwQQuCG4RYNVNsfRxc6QXfT/2S+ZDfJ0ZjmNk4Uwhw8Ak2KvkPvea/Y0ol8hRZkWZ9WTIA8kTTjnmOmoTvF18S5R6+pT1UOSYlaC4JwPjdZ3RnugJHgeWyaLoDZlmk12T4YEqkwO9hwAvtufo= ; Received: from unknown (HELO jupiter.black-lion.info) (janwieck@68.80.245.191 with login) by smtp017.mail.yahoo.com with SMTP; 19 Oct 2005 22:44:57 -0000 Received: from [172.21.8.23] (mars.black-lion.info [192.168.192.101]) (authenticated bits=0) by jupiter.black-lion.info (8.12.10/8.12.9) with ESMTP id j9JMis1o096640; Wed, 19 Oct 2005 18:44:54 -0400 (EDT) (envelope-from JanWieck@Yahoo.com) Message-ID: <4356CC61.3050107@Yahoo.com> Date: Wed, 19 Oct 2005 18:44:49 -0400 From: Jan Wieck User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dann Corbit Cc: Terry Fielder , "Marc G. Fournier" , Richard_D_Levine@raytheon.com, pgsql-general@postgresql.org Subject: Re: [pgsql-advocacy] Oracle buys Innobase References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.378 required=5 tests=[AWL=-0.046, DNS_FROM_RFC_ABUSE=0.374, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/1217 X-Sequence-Number: 85446 On 10/19/2005 3:46 PM, Dann Corbit wrote: > Would you want varchar(30) 'Dann Corbit' to compare equal to bpchar(30) > 'Dann Corbit'? > > I would. wieck=# select 'Jan'::varchar(20) = 'Jan'::char(20); ?column? ---------- t (1 row) wieck=# select 'Jan'::char(20) = 'Jan'::varchar(20); ?column? ---------- t (1 row) wieck=# select version(); version --------------------------------------------------------------------- PostgreSQL 8.0.4 on i386-unknown-freebsd4.9, compiled by GCC 2.95.4 (1 row) Did I miss anything? Jan > > If both are considered character types by the language, then they must > compare that way. > > Perhaps there are some nuances that I am not aware of. But that is how > things ought to behave, if I were king of the forest. > >> -----Original Message----- >> From: pgsql-general-owner@postgresql.org [mailto:pgsql-general- >> owner@postgresql.org] On Behalf Of Terry Fielder >> Sent: Wednesday, October 19, 2005 12:37 PM >> To: Marc G. Fournier >> Cc: Richard_D_Levine@raytheon.com; pgsql-general@postgresql.org >> Subject: Re: [pgsql-advocacy] [GENERAL] Oracle buys Innobase >> >> OK, I am not an expert on the SQL standard, but I thought the > definition >> varied by data type e.g. varchar <> bpchar >> >> Terry >> >> Marc G. Fournier wrote: >> > On Wed, 19 Oct 2005, Richard_D_Levine@raytheon.com wrote: >> > >> >> I was referring to trailing blanks, but did not explicitly say it, >> >> though showed it in the examples. I am pretty sure that the SQL >> >> standard says that trailing whitespace is insignificant in string >> >> comparison. >> > >> > >> > Then we are broken too :) >> > >> > # select 'a ' = 'a '; >> > ?column? >> > ---------- >> > f >> > (1 row) >> > >> > ---- >> > Marc G. Fournier Hub.Org Networking Services >> (http://www.hub.org) >> > Email: scrappy@hub.org Yahoo!: yscrappy ICQ: >> 7615664 >> > >> > ---------------------------(end of > broadcast)--------------------------- >> > TIP 4: Have you searched our list archives? >> > >> > http://archives.postgresql.org >> > >> >> -- >> Terry Fielder >> terry@greatgulfhomes.com >> Associate Director Software Development and Deployment >> Great Gulf Homes / Ashton Woods Homes >> Fax: (416) 441-9085 >> >> ---------------------------(end of > broadcast)--------------------------- >> TIP 6: explain analyze is your friend > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #