>
When moving up in version you need to use the newer version of pg_dump(...\12\bin\pg_dump.exe) to dump the 9.4 instance and then the version 12 pg_restore to the 12 instance.
Oh my. That's a substantial change that could make a difference.
Thanks for catching that.