Didn't correct output for LTRIM function

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: nikunjkvadsakabcd(at)gmail(dot)com
Subject: Didn't correct output for LTRIM function
Date: 2022-06-13 01:46:18
Message-ID: 165508477855.573547.14409154187053327475@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

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.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Guillaume Lelarge 2022-06-13 08:26:53 Re: Didn't correct output for LTRIM function
Previous Message David G. Johnston 2022-06-10 19:12:26 Re: COPY FROM