Low: pgsql: refactoring for preparing the cacade replication.

1. rename the function name, control_slave_status to control_children_status
2. add a new function, get_targent_node(), and some logic to judge who is my children.
3. marshal the pattern when target node's status is "STREAMING|ASYNC"