Re: The same result for with SPACE and without SPACE

From: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
To: "Wetmore, Matthew (CTR)" <Matthew(dot)Wetmore(at)express-scripts(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, M Sarwar <sarwarmd02(at)outlook(dot)com>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: The same result for with SPACE and without SPACE
Date: 2023-06-15 13:38:36
Message-ID: 2CAFD37D-68FC-4A01-BE65-FAF1ADF7A60A@elevated-dev.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-advocacy

> On Jun 15, 2023, at 7:08 AM, Wetmore, Matthew (CTR) <Matthew(dot)Wetmore(at)express-scripts(dot)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.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Mohammed Aslam 2023-06-15 13:44:33 Re: The same result for with SPACE and without SPACE
Previous Message Wetmore, Matthew (CTR) 2023-06-15 13:08:06 The same result for with SPACE and without SPACE

Browse pgsql-advocacy by date

  From Date Subject
Next Message Mohammed Aslam 2023-06-15 13:44:33 Re: The same result for with SPACE and without SPACE
Previous Message Wetmore, Matthew (CTR) 2023-06-15 13:08:06 The same result for with SPACE and without SPACE