public inbox for [email protected]  
help / color / mirror / Atom feed
From: M Sarwar <[email protected]>
To: Tom Lane <[email protected]>
To: Scott Ribe <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: The same result for with SPACE and without SPACE
Date: Thu, 15 Jun 2023 17:13:10 +0000
Message-ID: <DM4PR19MB5978BEB92FCD2765A0E6AA9BD35BA@DM4PR19MB5978.namprd19.prod.outlook.com> (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]>

@Tom Lane<mailto:[email protected]>
Thanks for this email.
I am checking all the emails.
Sincerely,
Sarwar

________________________________
From: Tom Lane <[email protected]>
Sent: Wednesday, June 14, 2023 6:45 PM
To: M Sarwar <[email protected]>
Cc: Scott Ribe <[email protected]>; [email protected] <[email protected]>
Subject: 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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.postgresql.org%2Fdocs%2Fcurrent...;

                        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]
  Subject: Re: The same result for with SPACE and without SPACE
  In-Reply-To: <DM4PR19MB5978BEB92FCD2765A0E6AA9BD35BA@DM4PR19MB5978.namprd19.prod.outlook.com>

* 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