Closed lbartoletti closed 6 years ago
@lbartoletti have you seen https://github.com/qwat/qwat-data-model/pull/220? This PR fixes a bug where data+structure dumps were not correctly created. This PR is merged but I am not sure @haubourg has updated the dumps on the 1.3.1 dumps on the Releases page.
@elemoine Yes, it's works. Thanks.
I'll update the doc.
I've uploaded new data+structure dumps on the 1.3.1 release page.
Data and structure
1.3.1
backup
> pg_restore -U postgres --dbname qwat -e --no-owner --verbose --jobs=3 --disable-triggers --port 5432 qwat_v1.3.X_data_and_structure_sample.backup
doesn't works:plain sql
> psql -U postgres -d qwat -v ON_ERROR_STOP=1 < qwat_v1.3.1_data_and_structure_sample.sql
1.2.9 (qwat-data-sample)
backup
> pg_restore qwat_v1.2.X_data_and_structure_sample.backup
worksplain sql
> psql -U postgres -d qwat -v ON_ERROR_STOP=1 < qwat_v1.2.9_data_and_structure_sample.sql
worksData only
1.3.1 and 1.2.9 plain sql
psql -U postgres -d qwat -v ON_ERROR_STOP=1 < qwat_v1.X.X_data_only_sample.sql
missing
SET session_replication_role = replica;
in header to disable temporarily all triggers Without it, we got this error:1.3.1 backup
pg_restore -U postgres --dbname qwat -e --no-owner --verbose --jobs=3 --disable-triggers --port 5432 qwat_v1.3.1_data_only_sample.backup
works