New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add schemaOnly to the import section #2234
Conversation
❗ By default, the pull request is configured to backport to all release branches.
|
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
/test limit=local |
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/5212362117 |
Closes #2228 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
/test depth=push test_level=4 feature_type=importing-databases |
@sxd, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/5220778617 |
The import feature was previously importing everything, schema and data, with this new feature we will be able to select only schema or schema and data. The way is doing this it's using the `section` feature from `pg_dump` and `pg_restore` commands, we select which section we want to dump/restore, for a full dump and restore we use `pre-data`, `data` and `post-data` sections, while to import only the schema the section `pre-data` and `post-data` is used. Closes #2228 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com> (cherry picked from commit ad0fdb2)
The import feature was previously importing everything, schema and data, with this new feature we will be able to select only schema or schema and data. The way is doing this it's using the `section` feature from `pg_dump` and `pg_restore` commands, we select which section we want to dump/restore, for a full dump and restore we use `pre-data`, `data` and `post-data` sections, while to import only the schema the section `pre-data` and `post-data` is used. Closes #2228 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com> (cherry picked from commit ad0fdb2)
The import feature was previously importing everything, schema and data, with this new feature we will be able to select only schema or schema and data. The way is doing this it's using the `section` feature from `pg_dump` and `pg_restore` commands, we select which section we want to dump/restore, for a full dump and restore we use `pre-data`, `data` and `post-data` sections, while to import only the schema the section `pre-data` and `post-data` is used. Closes #2228 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com> (cherry picked from commit ad0fdb2)
The import feature was previously importing everything, schema and data, with this new feature we will be able to select only schema or schema and data. The way is doing this it's using the `section` feature from `pg_dump` and `pg_restore` commands, we select which section we want to dump/restore, for a full dump and restore we use `pre-data`, `data` and `post-data` sections, while to import only the schema the section `pre-data` and `post-data` is used. Closes #2228 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
Closes #2228