trying to isolate all interactions with PG/ReplicatedPG thru IPG
it compiles. However I'm unsure if this is the right approach.

Signed-off-by: Loic Dachary <loic@dachary.org>