citus/src/backend
Jelte Fennema-Nio 50770386be Speed up GetForeignKeyOids
GetForeignKeyOids was showing up in CPU profiles when distributing
schemas on systems with 100k+ constraints. The reason was that this
function was doing a sequence scan of pg_constraint to get the foreign
keys that referenced the requested table.

This fixes that by finding the constraints referencing the table through
pg_depend instead of pg_constraint. We're doing this indirection,
because pg_constraint doesn't have an index that we can use, but
pg_depend does.
2024-04-15 14:22:53 +02:00
..
columnar fix bad copy-paste rightComparisonLimit (#7547) 2024-03-05 08:49:35 +01:00
distributed Speed up GetForeignKeyOids 2024-04-15 14:22:53 +02:00
.gitignore Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00