Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4jYy-0005Kk-Dm for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Jun 2015 05:37:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z4jYx-00019Y-Tz for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Jun 2015 05:37:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z4jYw-00019F-OK for pgsql-bugs@postgresql.org; Tue, 16 Jun 2015 05:37:30 +0000 Received: from jiboia.ensmp.fr ([194.214.158.103]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z4jYt-0007R3-0a for pgsql-bugs@postgresql.org; Tue, 16 Jun 2015 05:37:28 +0000 Received: from cri.ensmp.fr (204.200.219.88.rev.sfr.net [88.219.200.204]) (authenticated bits=0) by jiboia.ensmp.fr (8.15.1/8.14.9/JMMC-22/Oct/2013) with ESMTPSA id t5G5bMFW028008 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Jun 2015 07:37:23 +0200 Date: Tue, 16 Jun 2015 07:37:21 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@sto To: Tom Lane cc: bz@mailinator.com, PostgreSQL Bugs List Subject: Re: BUG #13442: ISBN doesn't always roundtrip with text In-Reply-To: <598.1434425712@sss.pgh.pa.us> Message-ID: References: <20150614155912.2732.93270@wrigleys.postgresql.org> <42501.1434389175@sss.pgh.pa.us> <598.1434425712@sss.pgh.pa.us> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Miltered: at jiboia.ensmp.fr with ID 557FB612.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID fabien.coelho X-j-chkmail-Enveloppe: 557FB612.000 from 204.200.219.88.rev.sfr.net/204.200.219.88.rev.sfr.net/88.219.200.204/cri.ensmp.fr/ X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org > I think this definitely indicates a bug: > > regression=# select '9791020902573'::isbn; > isbn > --------------- > 10-209-0257-4 > (1 row) Yes, indeed, this one is definitely a bug. > regression=# select '9791020902573'::isbn = '10-209-0257-4'::isbn; > ?column? > ---------- > f > (1 row) > > so apparently the canonicalization conversion wasn't right to begin with. I still do not get it, "False" is expected on this last one, as this is not the same book. > I have no idea which of these forms should be considered valid or > canonical, but surely the two behaviors exhibited above are wrong. I think that it is only the first one, i.e. converting the ISBN13 code beginning with 979 to a ISBN10 should have raised an exception. -- Fabien. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs