Re: fix for BUG #3720: wrong results at using ltree - Mailing list pgsql-hackers

From Tom Lane
Subject Re: fix for BUG #3720: wrong results at using ltree
Date
Msg-id 3843.1585606362@sss.pgh.pa.us
Whole thread Raw
In response to Re: fix for BUG #3720: wrong results at using ltree  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: fix for BUG #3720: wrong results at using ltree  (Nikita Glukhov <n.gluhov@postgrespro.ru>)
List pgsql-hackers
I wrote:
> I dunno, that doesn't really seem clearer to me (although some of it
> might be that you expended no effort on making the comments match
> the new code logic).

... although looking closer, this formulation does have one very nice
advantage: for the typical non-star case with high = low = 1, the
only recursive call is a tail recursion, so it ought to consume less
stack space than what I wrote.

Let me see what I can do with the comments.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: Re: [PATCH] remove condition always true (/src/backend/access/heap/vacuumlazy.c)
Next
From: Nikita Glukhov
Date:
Subject: Re: fix for BUG #3720: wrong results at using ltree