def replication_connection_string_and_slot_using_pgpass(target_node_info):
    """Like `connection_string_and_slot_using_pgpass` but returns a
    connection string for a replication connection."""
    connection_info, slot = connection_info_and_slot(target_node_info)
    connection_info["dbname"] = "replication"
    connection_info["replication"] = "true"
    connection_string = create_pgpass_file(connection_info)
    return connection_string, slot
def replication_connection_string_and_slot_using_pgpass ( target_node_info ) : connection_info , slot = connection_info_and_slot ( target_node_info ) connection_info [ "dbname" ] = "replication" connection_info [ "replication" ] = "true" connection_string = create_pgpass_file ( connection_info ) return connection_string , slot
Like `connection_string_and_slot_using_pgpass` but returns a
    connection string for a replication connection.