简体   繁体   中英

Restore missing rows from pg_dump backup

I have a database where some records were accidentally deleted from one of the tables. There is a recent plaintext dump available that was created using pg_dump. The table has a uuid column. Is there a way to restore the missing rows into the original table from the dump?

The table schema has been altered since the dump was created, but none of the changes should prevent old records from being imported as is.

You have to restore the dump into a different database and extract the interesting rows from there. Then you can restore them into the original table.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM