ERROR: could not access file "wal2json": No such file or directory
This error happens because of the absence of the plugin wal2json. We can install it using the following commands.
In Red Hat/CentOS,
#yum install wal2json<version>
#apt-get install postgresql-<version>-wal2json
<version> need to be replaced with PostgreSQL major version.