I have tables from different databases , and i want to create a data warehouse database that contains table replicas from different tables from different databases. I want the data in the warehouse to be synced with the data from the other tables everyday.I am using postgresql
I tried to do this using psql :
pg_dump -t table_to_copy source_db | psql target_db
However it didnt work as it keeps stating errors like table does no exist. It all worked when i dumped the whole dabatase not only a single table, but however i want the data to be synced and i want to copy tables from different databases not the whole database.
How can i do this? Thanks!
... it keeps stating errors like table does no exist.What was the error message you got?u_datetimea UDT ? If it is, it must exist in the target database too -->> you'll need to create it before you create the table that depends on it.