dblink_get_connections — returns the names of all open named dblink connections
dblink_get_connections() returns text[]
    dblink_get_connections returns an array of the names
    of all open named dblink connections.
   
Returns a text array of connection names, or NULL if none.
SELECT dblink_get_connections();