Then I'd need to open our servers to external visits. It would be lovely if dblink_exec could push a subselect of data instead instead of pull from RDS. Does this make sense?
Is the idea to pull data from the RDS to your local machine? If so, dblink or possibly plproxy[1] should be able to do that.
Sorry, no, I want to push data from my local machine but I've only seen examples of push with dblink_exec and litteral values rather than a subselect or smth.