database - Postgres: How can we preserve data of foreign table which is creating using foreign data wrapper -


i trying migrate oracle database postgres using foreign_database_wrapper creating foreign tables.

but since foreign tables acts view of oracle @ time of executing query fetches data on fly original source , hence increases processing time.

as of now, in order maintain physical data @ postgres end, creating table , inserting data in it.

eg: create table employee_details select * emp_det;

where employee_details physical table , emp_det foreign table

but felt process kind of redundant , time time need manipulate table(new insertion, updation or deletion)

so if share related way can preserve these data other mode.

regards,

see identical github issue.

oracle_fdw not store oracle data on postgresql side. each access foreign table directly accesses oracle database.

if want copy of data physically located in postgresql database, can either described, or use materialized view:

create materialized view emp_det_mv select * emp_det; 

that same thing, simpler. refresh data, can run

refresh materialized view emp_det_mv; 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -