Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axq6r-0002Cp-1Z for pgsql-bugs@arkaria.postgresql.org; Wed, 04 May 2016 06:16:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axq6q-0007om-5B for pgsql-bugs@arkaria.postgresql.org; Wed, 04 May 2016 06:16:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1axq6p-0007ob-Ix for pgsql-bugs@postgresql.org; Wed, 04 May 2016 06:16:31 +0000 Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1axq6m-0003Dw-8k for pgsql-bugs@postgresql.org; Wed, 04 May 2016 06:16:30 +0000 Received: by mail-lf0-x22c.google.com with SMTP id y84so47778937lfc.0 for ; Tue, 03 May 2016 23:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gf-microolap-com.20150623.gappssmtp.com; s=20150623; h=sender:from:date:reply-to:organization:message-id:to:subject :in-reply-to:references:mime-version:content-transfer-encoding; bh=ui/WKnjGu6YeIy9JWeTIA80atmdL0ELXWOjkUB8t4VM=; b=Sw7AYcTprSWQM5djHCxmnWfqdQR03V7D+ykEBgu6en50w0FtzQZHHszlL8nRggfJTH YMpnkN2nWpivd0Y5UFXsBY/F23cn1hr+wz28KdMZgEX4y6+0ZFfFV7hRPczkVo2LZ3K9 XbphKnMLpE371n5MHMoK6oxdrJEJ5FYDo6y/hG6i/GYE8wECreLF/XQ7DzpUe/N+QAX6 F2TJ7em1jBafOPN/mNP+V2yWA6GNL37DJgSiXM7k5hHlY73z/HaBBiSk2lml5wPbKERC RjPk703u01nMiCm52IeevVr+S3QT+6zWAXgFup71QtXtJgxoiZLkJGHHzd+9Os2+EdWW FbJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:date:reply-to:organization :message-id:to:subject:in-reply-to:references:mime-version :content-transfer-encoding; bh=ui/WKnjGu6YeIy9JWeTIA80atmdL0ELXWOjkUB8t4VM=; b=efUA7Fivb5cNrKseVA27Vz7uTUKzBWU+FFQtG0xj0AYCMfe+nXLEOI11fDmbSQi3i8 YrfNfrI9/5Gia1hKzY2LON+cRvM2xCFLMeZ/RWb3ZOaeII4XgfBOcHFu47Gsmr7Vrbfd WyR/wcKnVJHCabxvr8zbRMNyXEIIfsCY2O5i0ysFDJl8NntVqqDFOjxp/4sBRNKcFg3M HxtMqAX9g2IdkTMVzQQrmNlLz/33l1U8g1TDaHxwO6n95KKFnTQ4oiIsp5YdxOIDD4K/ 1qk3OYQ0rBFHRKh2TaQz0uCobb/n/zi3Axri7gPnTeEvFMIQvqXJTwSnR36WaGdGV70O Dr/g== X-Gm-Message-State: AOPr4FVOARdYkRNdTBODIAd86L/T+Qek6YsifcZuoaNMYUlUSZMDMX3iHSnb3ZAEFtWMkw== X-Received: by 10.112.25.2 with SMTP id y2mr3163192lbf.104.1462342587261; Tue, 03 May 2016 23:16:27 -0700 (PDT) Received: from u1.102.seti.kr.ua ([91.226.59.42]) by smtp.gmail.com with ESMTPSA id h16sm346645lfb.7.2016.05.03.23.16.25 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 May 2016 23:16:26 -0700 (PDT) From: Pavel Golub X-Google-Original-From: Pavel Golub Date: Wed, 4 May 2016 09:16:46 +0300 Reply-To: Pavel Golub Organization: Microolap X-Priority: 3 (Normal) Message-ID: <1403837265.20160504091646@gf.microolap.com> To: cpacejo@clearskydata.com, pgsql-bugs@postgresql.org Subject: Re: BUG #14064: Sort order of bytea, etc. not defined In-Reply-To: <20160404203304.15198.54263@wrigleys.postgresql.org> References: <20160404203304.15198.54263@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) 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 Hello, Cpacejo. You wrote: ccc> The following bug has been logged on the website: ccc> Bug reference: 14064 ccc> Logged by: Chris Pacejo ccc> Email address: cpacejo@clearskydata.com ccc> PostgreSQL version: 9.5.2 ccc> Operating system: any ccc> Description: ccc> The documentation does not define (nor call out as undefined) the sort order ccc> of bytea, bit varying, and other sequence types. While the bytea sort order ccc> is unsurprising (a < b if a is a prefix of b, but b > a if a prefix of b > ccc> the same length prefix of a), it is not the only such "unsurprising" sort ccc> order, and it would be helpful to have the guarantee that this sort order ccc> can be relied upon (especially in concert with range types). You shouls use explicit type casting for such types. -- With best wishes, Pavel mailto:pavel@gf.microolap.com -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs