citus/src
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
..
backend Speed up GetForeignKeyOids 2024-04-15 14:22:53 +02:00
include Fix crash caused by some form of ALTER TABLE ADD COLUMN statements. (#7522) 2024-03-20 11:06:05 +03:00
test Use expecteddir option when running vanilla tests (#7573) 2024-04-10 16:08:54 +00:00