feat(import): support stage-specific pg_restore options#7690
feat(import): support stage-specific pg_restore options#7690gbartolini merged 8 commits intocloudnative-pg:mainfrom
pg_restore options#7690Conversation
|
❗ By default, the pull request is configured to backport to all release branches.
|
0f1179b to
8ec8d4e
Compare
|
Not a maintainer, but this PR solves exactly the problem I had when creating the issue. Thanks for working on it! Edit: was there a preInitSql and postInitSql? |
8ec8d4e to
95839f0
Compare
|
Hello, thanks for the contribution, adding it to the review queue for 1.27 |
95839f0 to
d61fc56
Compare
|
Hey maintainers let me know if there's something to be added more here! |
Can you please integrate the documentation? https://cloudnative-pg.io/documentation/current/database_import/#customizing-pg_dump-and-pg_restore-behavior |
a7ad779 to
c47b82b
Compare
|
Hello @gbartolini I have updated the |
99a3a50 to
ae7309e
Compare
a8c138b to
fe5401a
Compare
|
/test |
|
@leonardoce, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/17919792455 |
|
/test |
|
@leonardoce, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/17920266486 |
c3d0455 to
f7bf4f1
Compare
30a3e9a to
03a05c2
Compare
|
/test limit=local |
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/17948740417 |
03a05c2 to
df8b4f9
Compare
|
Using Output: |
…a/postdata Signed-off-by: hanshal101 <hanshalmehta10@gmail.com>
Signed-off-by: hanshal101 <hanshalmehta10@gmail.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
…ctionsToExecute is used also for pg_dump Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
7697aac to
9cb82a2
Compare
pg_restore options
…e-pg#7690) Adds support for stage-specific parallelism and flags during `pg_restore` in `bootstrap.initdb.import`. This enables finer-grained control over performance-sensitive imports by allowing users to configure separate options for: - predata (e.g., schema definitions) - data (bulk table content) - postdata (constraints, indexes, triggers) Fixes: cloudnative-pg#6874 Closes: cloudnative-pg#6874 Signed-off-by: hanshal101 <hanshalmehta10@gmail.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
…e-pg#7690) Adds support for stage-specific parallelism and flags during `pg_restore` in `bootstrap.initdb.import`. This enables finer-grained control over performance-sensitive imports by allowing users to configure separate options for: - predata (e.g., schema definitions) - data (bulk table content) - postdata (constraints, indexes, triggers) Fixes: cloudnative-pg#6874 Closes: cloudnative-pg#6874 Signed-off-by: hanshal101 <hanshalmehta10@gmail.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Signed-off-by: theBrahma <office.utpal.brahma@gmail.com>
Adds support for stage-specific parallelism and flags during
pg_restoreinbootstrap.initdb.import. This enables finer-grained control over performance-sensitive imports by allowing users to configure separate options for:Fixes: #6874
Closes: #6874