pg_replication script works better with PG 9.2