eulerto / wal2json

JSON output plugin for changeset extraction
BSD 3-Clause "New" or "Revised" License
1.33k stars 161 forks source link

Error loading wal2json.dll: The specified module could not be found. #156

Closed ghost closed 4 years ago

ghost commented 4 years ago

We have problem using wal2json.dll in Windows Server 2012 64bit. Excecuting command SELECT * FROM pg_create_logical_replication_slot('stitch', 'wal2json'); produces following error

ERROR: could not load library "C:/Program Files/PostgreSQL/12/lib/wal2json.dll": The specified module could not be found.

SQL state: 58P01

Postgre version 12 VS219 redistributable is installed and up the date.

Build machine is Win10 64bit Postgre version 12 VS 2019 Community Edition VS219 redistributable is installed and up the date. Tried both debug and release versions, still same error. In build machine, command works We have no idea how to fix this.

ghost commented 4 years ago

Just got it running. Server hasn't file named vcruntime140d.dll just renamed vcruntime140.dll to vcruntime140d.dll and system works now.