pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: patrick.van.dijk@gmail.com
Subject: BUG #18523: String compare not consistent
Date: Wed, 26 Jun 2024 09:43:42 +0000
Message-ID: <18523-d7b3cacb64d91cda@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18523
Logged by:          Patrick van Dijk
Email address:      patrick.van.dijk@gmail.com
PostgreSQL version: 16.3
Operating system:   Windows vs Linux/Azure
Description:        

When I try the following on a Azure/Linux version of PostgreSQL i see some
strange results that are not correct.
On Windows the behavior is correct.

select '|' < '0';		-- true, true, this is correct
select '|1' < '01';	-- false, true, Azure/Linux is wrong
select '||' < '0|';	-- true, true, this is correct
select '||1' < '0|1';	-- false, true, Azure/Linux is wrong

When the first character compares <, then no matter what follows, it should
be <...



view thread (6+ messages)  latest in thread

Message-ID: <18523-d7b3cacb64d91cda@postgresql.org>
Permalink:  ../18523-d7b3cacb64d91cda@postgresql.org/
Also on:    postgresql.org/message-id/18523-d7b3cacb64d91cda@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, patrick.van.dijk@gmail.com
  Subject: Re: BUG #18523: String compare not consistent
  In-Reply-To: <18523-d7b3cacb64d91cda@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox