def remote_postgres(client_ip, host, command):
 return remote_command(client_ip, ('psql', ((((((('postgres://' + POSTGRESQL_USERNAME) + ':') + POSTGRESQL_PASSWORD) + '@') + host) + ':') + str(POSTGRESQL_PORT)), '--command={}'.format(command)))

def remote_postgres ( client_ip , host , command ) : return remote_command ( client_ip , ( 'psql' , ( ( ( ( ( ( ( 'postgres://' + POSTGRESQL_USERNAME ) + ':' ) + POSTGRESQL_PASSWORD ) + '@' ) + host ) + ':' ) + str ( POSTGRESQL_PORT ) ) , '--command={}' . format ( command ) ) )
run psql on client_ip .