Does any PostgreSQL guru understand what's going on here? First query is slow with many rows, second one is much faster. My expectation was that the two were supposed to yield similar results.
https://paste.sr.ht/blob/007f4a6ba1f60216ad787a704d5b8cee701dfdd2