public inbox for [email protected]  
help / color / mirror / Atom feed
From: Wetmore, Matthew (CTR) <[email protected]>
To: Tom Lane <[email protected]>
To: M Sarwar <[email protected]>
Cc: Scott Ribe <[email protected]>
Cc: [email protected] <[email protected]>
Subject: The same result for with SPACE and without SPACE
Date: Thu, 15 Jun 2023 13:08:06 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <DM4PR19MB5978EB964FA1C7B55FFCB02DD35AA@DM4PR19MB5978.namprd19.prod.outlook.com>
	<DM4PR19MB59782360E0C452810D70CBE8D35AA@DM4PR19MB5978.namprd19.prod.outlook.com>
	<[email protected]>
	<DM4PR19MB59784B518F25D2C2292CA3FBD35AA@DM4PR19MB5978.namprd19.prod.outlook.com>
	<[email protected]>

I can reproduce this with a INT

-----Original Message-----
From: Tom Lane <[email protected]> 
Sent: Wednesday, June 14, 2023 3:46 PM
To: M Sarwar <[email protected]>
Cc: Scott Ribe <[email protected]>; [email protected]
Subject: [EXTERNAL] Re: The same result for with SPACE and without SPACE

M Sarwar <[email protected]> writes:
> I expect this to behave the same way whether it comes from CHAR or VARCHAR.

You expect incorrectly.  CHAR comparison is insensitive to trailing
spaces:

https://urldefense.com/v3/__https://www.postgresql.org/docs/current/datatype-character.html__;!!GFE8... 

			regards, tom lane







view thread (22+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected], [email protected]
  Subject: Re: The same result for with SPACE and without SPACE
  In-Reply-To: <[email protected]>

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

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