feat(import): support stage-specific `pg_restore` options by hanshal101 · Pull Request #7690 · cloudnative-pg/cloudnative-pg

@dosubot dosubot bot added the size:M

This PR changes 30-99 lines, ignoring generated files.

label

May 29, 2025

@dosubot dosubot bot added size:L

This PR changes 100-499 lines, ignoring generated files.

and removed size:M

This PR changes 30-99 lines, ignoring generated files.

labels

Jul 1, 2025

leonardoce

@dosubot dosubot bot added the lgtm

This PR has been approved by a maintainer

label

Sep 23, 2025

NiccoloFei

…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>

@gbartolini gbartolini changed the title feat: allow extra pg_dump/pg_restore settings on predata/postdata feat(import): support stage-specific pg_restore options

Sep 25, 2025

rossigee pushed a commit to rossigee/cloudnative-pg that referenced this pull request

Oct 2, 2025
…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>

THE-BRAHMA pushed a commit to THE-BRAHMA/cloudnative-pg that referenced this pull request

Oct 30, 2025
…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>