M
M
Maxim2019-10-22 09:19:53
PostgreSQL
Maxim, 2019-10-22 09:19:53

Is there a utility that will transfer data between databases?

You need to transfer a table with data between 2 postgres databases, but in the database where you need to transfer a slightly different scheme (some fields are missing, etc.). Is there something ready for this? Where can I map this conversion and transfer the data?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Molchanov, 2019-10-22
@Dobryak88

I don’t advise ready-made, but this is done in one command for each pair of table
INSERT INTO DB1.TABLE1 (list the columns in the order in which they should go) SELECT (list the columns of the source table) FROM DB2.TABLE2;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question