Skip to content
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

fix: disable WAL archiving during import bootstrap #3743

Merged
merged 8 commits into from
Jan 30, 2024
Merged

fix: disable WAL archiving during import bootstrap #3743

merged 8 commits into from
Jan 30, 2024

Commits on Jan 30, 2024

  1. feat: disable WAL archiving during import bootstrap

    When using the import facility of the initdb bootstrap method in a job,
    optimize the PostgreSQL instance for the sole duration of the job, by setting
    the following GUCs:
    
    - `archive_mode` to `off`
    - `fsync` to `off`
    - `full_page_writes` to `off`
    - `wal_level` to `minimal`
    
    Then, restore the configuration and invoke `initdb --sync-only` before the end
    of the import job.
    
    Closes #3741
    
    Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
    gbartolini authored and mnencia committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    4ea7672 View commit details
    Browse the repository at this point in the history
  2. chore: review

    Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
    armru authored and mnencia committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    28e37a9 View commit details
    Browse the repository at this point in the history
  3. docs: mention optimizations

    Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
    gbartolini authored and mnencia committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    1e8f734 View commit details
    Browse the repository at this point in the history
  4. fix: set max_wal_senders to 0

    Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
    gbartolini authored and mnencia committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    c7aec7b View commit details
    Browse the repository at this point in the history
  5. fix: truncate override.conf file & refactor initdb bootstrap

    Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
    gbartolini authored and mnencia committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    425c50d View commit details
    Browse the repository at this point in the history
  6. chore: comments

    Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
    gbartolini authored and mnencia committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    3c78da1 View commit details
    Browse the repository at this point in the history
  7. refactor: introduce WritePostgresConfigurationFile

    Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
    mnencia committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    b50e1eb View commit details
    Browse the repository at this point in the history
  8. docs: update import samples

    Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
    mnencia committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    0374720 View commit details
    Browse the repository at this point in the history