X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EE9B53A1D86 for ; Fri, 29 Oct 2004 16:36:43 +0100 (BST) 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 71354-02 for ; Fri, 29 Oct 2004 15:36:40 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id F07643A2B49 for ; Fri, 29 Oct 2004 16:36:39 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id i9TFacNE016501; Fri, 29 Oct 2004 11:36:39 -0400 (EDT) To: Vadim Nasardinov Cc: Sebastiaan van Erk , pgsql-jdbc@postgresql.org Subject: Re: \0 and IllegalArgumentException In-reply-to: <200410291024.03718@vadim.nasardinov> References: <1099043710.595.50.camel@localhost> <200410291024.03718@vadim.nasardinov> Comments: In-reply-to Vadim Nasardinov message dated "Fri, 29 Oct 2004 10:24:03 -0400" Date: Fri, 29 Oct 2004 11:36:38 -0400 Message-ID: <16500.1099064198@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/304 X-Sequence-Number: 11409 Vadim Nasardinov writes: > I think you do have a point though when you say that \0 should be > allowed (and handled properly). Don't hold your breath. Moving away from the zero-terminated-string approach would require protocol changes (IIRC, the v3 protocol still depends on that in places), a massive rewrite effort to change every datatype's I/O functions, plus writing our own locale library because we couldn't use strcoll() anymore. And that's just the impacts I can think of before having had any coffee ;-) While the private locale library might eventually happen anyway, the other two things are still daunting, mainly because they break a ton of user code not only the backend. Basically, the bang for the buck doesn't seem to be there... regards, tom lane