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

Persist pgstat file to preserve statistic between sessions #356

Open
wants to merge 16 commits into
base: REL_16_STABLE_neon
Choose a base branch
from

Commits on Feb 6, 2024

  1. Patch PostgreSQL v16 with squashed patchset

    This prepares PostgreSQL for compatibility with Neon's storage.
    Significant changes compared to the PostgreSQL 15 patchset include:
    
    - Backported changes for users and roles are no longer required
    - Use RM_NEON_ID for changes in WAL, instead of modifying core WAL records
    MMeent authored and tristan957 committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    e6f1e42 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a449856 View commit details
    Browse the repository at this point in the history
  3. Upadte last written LSN after walloging all createdb stuff (#308)

    Co-authored-by: Konstantin Knizhnik <[email protected]>
    2 people authored and tristan957 committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    2afa3f1 View commit details
    Browse the repository at this point in the history
  4. Neon logical replication support for PG16 (#310)

    * Neon logical replication support for PG16
    
    * Log heap rewrite file after creation.
    
    ---------
    
    Co-authored-by: Konstantin Knizhnik <[email protected]>
    Co-authored-by: Arseny Sher <[email protected]>
    3 people authored and tristan957 committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    5d54d7a View commit details
    Browse the repository at this point in the history
  5. Fix elog format error in wallog_mapping_file (#317)

    Co-authored-by: Konstantin Knizhnik <[email protected]>
    2 people authored and tristan957 committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    d5424da View commit details
    Browse the repository at this point in the history
  6. Update WAL buffers when restoring WAL at compute needed for LR (#323)

    * Update WAL buffers when restoring WAL at compute needed for LR
    
    * Fix copying data in WAL buffers
    
    ---------
    
    Co-authored-by: Konstantin Knizhnik <[email protected]>
    2 people authored and tristan957 committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    383b05a View commit details
    Browse the repository at this point in the history
  7. Optimize stroing zero FPI in WAL (#327)

    PG16 adds new function to SMGR: zeroextend
    It's implementation in Neon actually wal-log zero pages of extended relation.
    This zero page is wal-logged using XLOG_FPI.
    As far as page is zero, the hole optimization (excluding from the image everything between pg_upper and pd_lower) doesn't work.
    
    This PR allows to set hole size to BLCKSZ in case of zero page (PageIsNull() returns true).
    ---------
    
    Co-authored-by: Konstantin Knizhnik <[email protected]>
    2 people authored and tristan957 committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    e25fffd View commit details
    Browse the repository at this point in the history
  8. Prevent output callbacks from hearing about neon-file messages (#328)

    * Prevent output callbacks from hearing about neon-file messages
    Sasha Krassovsky authored and tristan957 committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    b5f5755 View commit details
    Browse the repository at this point in the history
  9. Use strncmp instead of strcmp

    save-buffer authored and tristan957 committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    a3c2335 View commit details
    Browse the repository at this point in the history
  10. Flush slot creation/drop.

    arssher authored and tristan957 committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    cd07691 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ddd992d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    d88acb5 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    d4eeba9 View commit details
    Browse the repository at this point in the history
  14. Load SLRU segments on demand (#331)

    * Load SLRU segments on demand
    
    refer #8763
    
    * Fix errors in downloading SLRU segments
    
    * Fix build problems
    
    * Undo occcasional changes
    
    * Remove unintenmded changes
    
    * Fix smgr_read_slru_segment
    
    * Determine SLRU kind in extension
    
    * Use ctl->PagePrecedes for SLRU page comparison in SimpleLruDownloadSegment to address wraparround
    
    ---------
    
    Co-authored-by: Konstantin Knizhnik <[email protected]>
    2 people authored and tristan957 committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    550cdd2 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2024

  1. Persist pgstat file to preserve statistic between sessions

    Konstantin Knizhnik committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    9c38273 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2024

  1. Persistent pgstat file only if it is successfully created

    Konstantin Knizhnik committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    42736b8 View commit details
    Browse the repository at this point in the history