Implement COPY from the source database to the target.
It's far simpler to use the COPY protocol here compared to maybe running subprocesses with a pipe for pg_dump | pg_restore as initially planned. Also the buffering is all up to Postgres' copy API, so the code is still pretty simple overall.
parent
fccc55d9
Please register or sign in to comment