From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: nikunjkvadsakabcd@gmail.com
Subject: Didn't correct output for LTRIM function
Date: Mon, 13 Jun 2022 01:46:18 +0000
Message-ID: <165508477855.573547.14409154187053327475@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/14/bug-reporting.html
Description:
First check the output of "select LTRIM(' startech academy ', ' sta');"
output is "rtech academy "
now the thing is output of "select LTRIM(' startech academy ', ' star');"
output is "ech academy "
the question is where is 't'?
The problem is when we do LTRIM for trimming the first four characters, it
trims the first five characters. but in the case of doing three characters,
it gives the correct output.
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-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, nikunjkvadsakabcd@gmail.com
Subject: Re: Didn't correct output for LTRIM function
In-Reply-To: <165508477855.573547.14409154187053327475@wrigleys.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