Finishing the Postgres adapter would be simple. Migrating XF to efficiently run on Postgres would absolutely be not.
For XenForo, Postgres doesn't actually have a way to pin execution plans or provide optimizer hints. The official way is to rewriting the entire query. This is a huge overhead for the custom ORM/Query builder XF uses.