From Dev.to
PostgreSQL 19 skips its fast FK check for partitioned parents. Here is how to get it back.
PostgreSQL 19 sped up foreign-key checks. The catch, documented in the fast-path commit, is that the new path is skipped when the referenced table is partitioned. I wanted a way to get that speed back...
