[PATCH] Fix LTREE subpath with negative offset

From: Marcus Gartner <m(dot)a(dot)gartner(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: [PATCH] Fix LTREE subpath with negative offset
Date: 2025-10-31 16:04:35
Message-ID: CAAUGV_SvBO9gWYbaejb9nhe-mS9FkNP4QADNTdM3wdRhvLobwA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

subpath(ltree,offset,len) now correctly errors when given an offset less
than -n where n is the number of labels in the given ltree. A duplicate
block of code has been removed which allowed an offset as low as -2n.

Attachment Content-Type Size
0001-Fix-LTREE-subpath-with-negative-offset.patch application/octet-stream 1.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Álvaro Herrera 2025-10-31 16:15:14 Re: List TAP test files in makefiles
Previous Message Dmitry Koval 2025-10-31 15:41:14 Re: Add SPLIT PARTITION/MERGE PARTITIONS commands