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

Undo unlogged build v16 #413

Closed
wants to merge 28 commits into from
Closed

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 <knizhnik@neon.tech>
    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 <knizhnik@neon.tech>
    Co-authored-by: Arseny Sher <sher-ars@yandex.ru>
    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 <knizhnik@neon.tech>
    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 <knizhnik@neon.tech>
    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 <knizhnik@neon.tech>
    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 <knizhnik@neon.tech>
    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 13, 2024

  1. Configuration menu
    Copy the full SHA
    9c37a49 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2024

  1. Flush logical messages with snapshots and replication origin (#382)

    Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
    knizhnik and Konstantin Knizhnik authored Feb 21, 2024
    Configuration menu
    Copy the full SHA
    dc40299 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2024

  1. Set wasShutdown=true during hot-standby replica startup only when pri…

    …mary is not alive (#363)
    
    * Set wasShutdown=true during hot-standby replica startup only when primary is not alive
    * Report fatal error if hot standaby replica is started with oldestAcriveXid=0
    
    Postgres part of neondatabase/neon#6705
    ---------
    
    Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
    knizhnik and Konstantin Knizhnik authored Feb 22, 2024
    Configuration menu
    Copy the full SHA
    61c280c View commit details
    Browse the repository at this point in the history
  2. Add comment explaining why it is safe to use FirstNormalTransactionXi…

    …d for oldestActiveXid while replica startup (#387)
    
    Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
    knizhnik and Konstantin Knizhnik authored Feb 22, 2024
    Configuration menu
    Copy the full SHA
    67240b5 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2024

  1. Show information about local file cache in EXPLAIN ANALYZE (#384)

    Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
    knizhnik and Konstantin Knizhnik authored Feb 26, 2024
    Configuration menu
    Copy the full SHA
    072697b View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. Treat walproposer like walsenders in postmaster.

    This keeps the walproposer processes alive at shutdown, until after
    the shutdown checkpoint has been written. That gives the walproposers
    a chance to stream it to the safekeepers.
    hlinnaka authored and arssher committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    6969d90 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. Include backtrace in 'cannot set parameters during a parallel operati…

    …on' error message (#390)
    
    Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
    knizhnik and Konstantin Knizhnik authored Mar 8, 2024
    Configuration menu
    Copy the full SHA
    2fb3014 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. Fix bug introduced in 6969d90

    Konstantin Knizhnik authored and arssher committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    9007894 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. Add include for storage/off.h in neon_xlog.h

    This is done in other Postgres headers.
    tristan957 committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    2cd4fc3 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Remove Get/SetZenithCurrentClusterSize from Postgres core (#399)

    Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
    knizhnik and Konstantin Knizhnik authored Mar 22, 2024
    Configuration menu
    Copy the full SHA
    111e82c View commit details
    Browse the repository at this point in the history
  2. Revert IsPrimaryAlive checks (#402)

    * Revert "Add comment explaining why it is safe to use FirstNormalTransactionXid for oldestActiveXid while replica startup (#387)"
    
    This reverts commit 67240b5.
    
    * Revert "Set wasShutdown=true during hot-standby replica startup only when primary is not alive (#363)"
    
    This reverts commit 61c280c.
    skyzh authored Mar 22, 2024
    Configuration menu
    Copy the full SHA
    3946b2e View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Remember last written LSN when it is first requested (#410)

    * Remember last written LSN when it is first requested
    
    * Return updated LSN in SetLastWrittenLSN
    
    ---------
    
    Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
    knizhnik and Konstantin Knizhnik authored Apr 10, 2024
    Configuration menu
    Copy the full SHA
    261497d View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2024

  1. Undo changes in Postgres core for building GIST/GIN indexes

    Konstantin Knizhnik committed Apr 20, 2024
    Configuration menu
    Copy the full SHA
    ed0c419 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Add log_newpage_range_callback

    Konstantin Knizhnik committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    a673c9f View commit details
    Browse the repository at this point in the history