Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q9nHN-0005uR-Ks for pgsql-admin@arkaria.postgresql.org; Thu, 15 Jun 2023 13:44:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q9nHM-00037G-HV for pgsql-admin@arkaria.postgresql.org; Thu, 15 Jun 2023 13:44:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q9nHM-000376-6n for pgsql-admin@lists.postgresql.org; Thu, 15 Jun 2023 13:44:48 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q9nHJ-002XTH-P9 for pgsql-admin@lists.postgresql.org; Thu, 15 Jun 2023 13:44:47 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2b203891b2cso28096231fa.3 for ; Thu, 15 Jun 2023 06:44:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686836685; x=1689428685; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2eVXXzHapgVlILNzw2uHfgycNmMZK6affV4hlidPIz4=; b=UiywNVeYZVQTl4H/gzj5vQVUh37wJxlKR/6JccfKD73K7t/cRLD9J57ZoB4BsYFWYy L8QtwXNH+OefsZqXTeAr8A8m5WQFztWKy2WtDuTi/GBQOWhj4V5jcyqgJ30bjEeet0Kc mlM4J/ZMPpR6a/Hfk2oweUcZh6qXPjsolbVPnGAcAcQA0WJ+k4f6k/IGXnrjLgiM4/Ny WIl/Wr9arBSbnlwCH7fVvxllzsAWFHjUtGxgw6QOoHvA20271v67EEqf9QjdweJUwf74 R8mFjx6ugp6mB3wPRKgIkiVUPh9vh6bUOK71FwnsoBK4scH7Xd0Un7W9WtGWAh2FLYQ2 /CVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686836685; x=1689428685; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2eVXXzHapgVlILNzw2uHfgycNmMZK6affV4hlidPIz4=; b=QgY560xtuOMJV3NGMj9Pv2U3KWZSkNdiDW15BwySrLCpCWeeHBU3Zg/n3eH+ikwrDU N+TmokKJcqeIW4T6NhATclsccLsNphdmwNuWL05R38jBhDBkS6jsmi85wH8kUjxnrUWB iPPJ5McxrzLiH+3z53LvSOktIyja16cQXUU5kyd75yex7bPMCYJ1tHppo06YUSsknIGu fgmZ32cHqOHdNXE3ehIZjDDEhk52oQYAPwaslJku/j2S0yMKho6V2KIKXdc0/O35a3nj F2TcTMtjm4MLQuQtjXglyo6OP7xUQMdd5OxinutKmWlNfs3zVVFWYUfOcejOi2bYBHFa oZuQ== X-Gm-Message-State: AC+VfDwduuv8j57joMp4GOdEwmrKrktdsk713xz+Qq60ogSbHELq4PfT D81Ezg9tqKxgUmXh+MbcSIUkPs1Q0cih8b9T4K4= X-Google-Smtp-Source: ACHHUZ7P9tGQQTihAkeu5Iihna79ICi/oWQZW0LBZ+qELTXJ+8jzlWHxIk8HN2blU1qlm6/xoBWDPo5h/cnDsyz5CRU= X-Received: by 2002:a2e:a0ce:0:b0:2b0:2d23:79b with SMTP id f14-20020a2ea0ce000000b002b02d23079bmr8887007ljm.3.1686836684724; Thu, 15 Jun 2023 06:44:44 -0700 (PDT) MIME-Version: 1.0 References: <2018059.1686782739@sss.pgh.pa.us> <0055148e2cc742cbbc23485ae0c6c04e@express-scripts.com> <2CAFD37D-68FC-4A01-BE65-FAF1ADF7A60A@elevated-dev.com> In-Reply-To: <2CAFD37D-68FC-4A01-BE65-FAF1ADF7A60A@elevated-dev.com> From: Mohammed Aslam Date: Thu, 15 Jun 2023 19:14:33 +0530 Message-ID: Subject: Re: The same result for with SPACE and without SPACE To: Scott Ribe Cc: "Wetmore, Matthew (CTR)" , Tom Lane , M Sarwar , pgsql-admin@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000631dba05fe2b4517" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000631dba05fe2b4517 Content-Type: text/plain; charset="UTF-8" Kindly remove from here On Thu, 15 Jun, 2023, 7:09 pm Scott Ribe, wrote: > > On Jun 15, 2023, at 7:08 AM, Wetmore, Matthew (CTR) < > Matthew.Wetmore@express-scripts.com> wrote: > > > > I can reproduce this with a INT > > ? > > When casting string to integer, trailing spaces do not cause an exception. > When casting integer to char(n), the string will be blank padded. > > --000000000000631dba05fe2b4517 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Kindly remove from here

On Thu, 15 Jun, 2023, 7:09 pm Scot= t Ribe, <scott_ribe@eleva= ted-dev.com> wrote:
> On = Jun 15, 2023, at 7:08 AM, Wetmore, Matthew (CTR) <Matth= ew.Wetmore@express-scripts.com> wrote:
>
> I can reproduce this with a INT

?

When casting string to integer, trailing spaces do not cause an exception. = When casting integer to char(n), the string will be blank padded.

--000000000000631dba05fe2b4517--