Trying to replicate a database from one system to another. The versions involved are 9.5.0 (source) and 9.5.2 (target).
Source db name is foodb with owner
foodb
I realized the --no-owner is not the same as the -x. I added the -x to all pg_dump commands, which means:
--no-owner
-x
pg_dump
-x, --no-privileges do not dump privileges (grant/revoke)
which in effect excludes the offending GRANT/REVOKE commands from the dump. Problem resolved.
GRANT
REVOKE