Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the original GC index was rarely selected when GC'ing relations with millions of relationships. This caused a sequential scan that could load potentially Gigabytes worth of data, and overload the database.⚠️ Postgres 13 and 14 do not correctly select this new index because the query planner struggles with the xid8 datatype. Postgres 15 will be needed for this index to actually work. For scenarios where relations aren't very wide, older PG versions may have an acceptable query latency for GC, but we strongly recommend moving to PG15. This migration also deletes the old suboptimal index after the new one is created.
- Loading branch information