I have a db with sensitive data in a secure server, and a set of anonymization queries that I'd like to create foreign tables based on in a less secure server.
The Postgres native wrapper only enables you to create foreign tables directly mapped to tables in the source db, but it seems there are other wrappers which allow you to base the foreign tables based on queries.
Are there any foreign data wrappers for Postgres to Postgres porting that let you do this? Ideally it'd be like so:
create foreign table foreign_table (id integer)
server foreign_server
options (query 'some query')