I've struggled for a while to understand why I see a connection open. after a migration. It took me a while to understand that it was UseNodaTime() that was behind it.
Here's a program reproducing the error.
I've tried to a bit to troubleshoot the problem and found two things in efcore.pg that may be related. When both was applied, the connection left the pool, but was still open towards the db.
Posting those as separate PRs so you could the determine the relevance.