Re: ltree docs imprecise about sorting order - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: ltree docs imprecise about sorting order
Date
Msg-id ZxBiOIuP6EIOvhBc@momjian.us
Whole thread Raw
Responses Re: ltree docs imprecise about sorting order
List pgsql-hackers
On Thu, May 23, 2024 at 04:17:50PM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
> 
> Page: https://www.postgresql.org/docs/16/ltree.html
> Description:
> 
> The ltree docs available at
> https://www.postgresql.org/docs/current/ltree.html state "Comparison sorts
> in the order of a tree traversal" without specifying the strategy
> implemented to walk the tree. 
> A quick experiment suggests that the implemented solution is pre-ordered
> depth-first search.
> I suggest the ltree docs be amended to "Comparison sorts in the order of a
> pre-ordered depth-first tree traversal".

[ moved to hackers ]

Can someone confirm this and/or create a patch?

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  When a patient asks the doctor, "Am I going to die?", he means 
  "Am I going to die soon?"



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Should we document how column DEFAULT expressions work?
Next
From: David Rowley
Date:
Subject: Re: Fixing Hash Join bug I caused with adf97c156