CartoDB / cartodb-postgresql

PostgreSQL extension for CartoDB
BSD 3-Clause "New" or "Revised" License
111 stars 53 forks source link

PG federated server setup #372

Closed rafatower closed 5 years ago

rafatower commented 5 years ago

This branch adds a new function CDB_SetUp_PG_Federated_Server that can be used like this:

SELECT cartodb.CDB_SetUp_PG_Federated_Server('amazon', '{
   "server": {
     "dbname": "testdb",
     "host": "myhostname.us-east-2.rds.amazonaws.com",
     "port": "5432"
   },
   "credentials": {
     "username": "read_only_user",
     "password": "secret"
   }
}');

As a bonus it has a small refactor of tests, extracting some common setup and teardown from FDW tests.

rafatower commented 5 years ago

This other PR is a superset of this one: https://github.com/CartoDB/cartodb-postgresql/pull/373

rafatower commented 5 years ago

Closing in favor of https://github.com/CartoDB/cartodb-postgresql/pull/373