使用 FDW 扩展从本地数据库到云 SQL 是否可能或可行?
Is it possible or feasible to use the FDW extension from a local database to Cloud SQL?
我面临这样的情况,我有两个 PostgreSQL 数据库,一个在本地,一个在云端 SQL。本地数据库中的一些表应该在云中进行某种程度的复制,反之亦然(不是整个数据库的精确副本,只是其中的一部分)。
在这种情况下,是否可以(或在性能方面可行)使用 PostgreSQL 的 FDW 扩展来允许从两种方式访问数据?如果不是,有哪些替代方法可以仅复制部分数据库?
提前致谢。
更新:CloudSQL 现在接受 FDW。 Docs here.
列表有限 allowed PostgreSQL extensions on Cloud SQL, and at the moment of writing this answer none of them are for FDW。
在您描述的用例中,功能类似于 Cloud SQL First Gen mySQL external master replication would be interesting, but for PostgreSQL this functionality is not yet supported。
在 Google 的问题跟踪器中有 external master in PostgreSQL and the support for FDW extensions (and also this duplicate issue), although it looks like the external master feature request has been marked as working as intended, so I'm guessing you should not expect this feature any time soon. The feature request for FDW extensions seem to be gaining some traction, so I would suggest to follow that issue 的功能请求以获取任何更新。
我面临这样的情况,我有两个 PostgreSQL 数据库,一个在本地,一个在云端 SQL。本地数据库中的一些表应该在云中进行某种程度的复制,反之亦然(不是整个数据库的精确副本,只是其中的一部分)。
在这种情况下,是否可以(或在性能方面可行)使用 PostgreSQL 的 FDW 扩展来允许从两种方式访问数据?如果不是,有哪些替代方法可以仅复制部分数据库?
提前致谢。
更新:CloudSQL 现在接受 FDW。 Docs here.
列表有限 allowed PostgreSQL extensions on Cloud SQL, and at the moment of writing this answer none of them are for FDW。
在您描述的用例中,功能类似于 Cloud SQL First Gen mySQL external master replication would be interesting, but for PostgreSQL this functionality is not yet supported。
在 Google 的问题跟踪器中有 external master in PostgreSQL and the support for FDW extensions (and also this duplicate issue), although it looks like the external master feature request has been marked as working as intended, so I'm guessing you should not expect this feature any time soon. The feature request for FDW extensions seem to be gaining some traction, so I would suggest to follow that issue 的功能请求以获取任何更新。