PostgreSQL - repitiendo filas desde LIMIT OFFSET
Noté algunas filas repetidas en un conjunto de registros paginado.
Cuando ejecuto esta consulta:
SELECT "students".*
FROM "students"
ORDER BY "students"."status" asc
LIMIT 3 OFFSET 0
Yo obtengo:
| id | name | status |
| 1 | foo | active |
| 12 | alice | active |
| 4 | bob | active |
Siguiente consulta:
SELECT "students".*
FROM "students"
ORDER BY "students"."status" asc
LIMIT 3 OFFSET 3
Yo obtengo:
| id | name | status |
| 1 | foo | active |
| 6 | cindy | active |
| 2 | dylan | active |
¿Por qué aparece "foo" en ambas consultas?