2.4k questions

2.4k answers

99.5k users

Categories

0 votes
107 views
How do you copy data from a prod database to a dev database for some tables only in PostgreSQL (postgresql, PG dump, dbeaver, development)?
in General by (95.8k points)

1 Answer

0 votes

you must disable constrains

export the data of all relative tables in INSERT statements from source or all the tables with drop option and create option

go to the destination database

run the script that

Drop the relative tables

Create and populate them

enable constraints.

by (95.8k points)
...