Skip to content

Commit

Permalink
Test dump/restore with column-insert option
Browse files Browse the repository at this point in the history
Signed-off-by: Rishabh Tanwar <[email protected]>
  • Loading branch information
ritanwar committed Sep 13, 2023
1 parent 711a083 commit 55b0f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/composite-actions/dump-restore-util/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ runs:
if [[ '${{ inputs.logical_database }}' == 'null' ]];then
echo 'Starting to dump whole Babelfish physical database'
~/${{ inputs.pg_new_dir }}/bin/pg_dumpall -h localhost --database jdbc_testdb --username jdbc_user --globals-only --quote-all-identifiers --verbose --no-role-passwords -f pg_dump_globals.sql 2>>error.log
~/${{ inputs.pg_new_dir }}/bin/pg_dump -h localhost --username jdbc_user --quote-all-identifiers --verbose --format=custom --file="pg_dump.custom" --dbname=jdbc_testdb 2>>error.log
~/${{ inputs.pg_new_dir }}/bin/pg_dump -h localhost --username jdbc_user --column-inserts --quote-all-identifiers --verbose --format=custom --file="pg_dump.custom" --dbname=jdbc_testdb 2>>error.log
else
echo "Starting to dump Babelfish logical database ${{ inputs.logical_database }}"
~/${{ inputs.pg_new_dir }}/bin/pg_dumpall -h localhost --database jdbc_testdb --username jdbc_user --globals-only --quote-all-identifiers --verbose --no-role-passwords --bbf-database-name='${{ inputs.logical_database }}' -f pg_dump_globals.sql 2>>error.log
~/${{ inputs.pg_new_dir }}/bin/pg_dump -h localhost --username jdbc_user --quote-all-identifiers --verbose --format=custom --bbf-database-name='${{ inputs.logical_database }}' --file="pg_dump.custom" --dbname=jdbc_testdb 2>>error.log
~/${{ inputs.pg_new_dir }}/bin/pg_dump -h localhost --username jdbc_user --column-inserts --quote-all-identifiers --verbose --format=custom --bbf-database-name='${{ inputs.logical_database }}' --file="pg_dump.custom" --dbname=jdbc_testdb 2>>error.log
fi
# Stop old server and start the new.
Expand Down

0 comments on commit 55b0f70

Please sign in to comment.