Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postgres/postgres
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master@{1day}
Choose a base ref
...
head repository: postgres/postgres
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 9 commits
  • 16 files changed
  • 6 contributors

Commits on Jun 26, 2025

  1. pg_dump: include comments on valid not-null constraints, too

    We were missing collecting comments for not-null constraints that are
    dumped inline with the table definition (i.e., valid ones), because they
    aren't represented by a separately dumpable object.  Fix by creating
    separate TocEntries for the comments.
    
    Co-Authored-By: Jian He <[email protected]>
    Co-Authored-By: Álvaro Herrera <[email protected]>
    Reported-By: Fujii Masao <[email protected]>
    Reviewed-By: Fujii Masao <[email protected]>
    Discussion: https://postgr.es/m/[email protected]
    Álvaro Herrera and jianhe-fun committed Jun 26, 2025
    Configuration menu
    Copy the full SHA
    47fb875 View commit details
    Browse the repository at this point in the history
  2. docs: fix typo

    Álvaro Herrera committed Jun 26, 2025
    Configuration menu
    Copy the full SHA
    48c80ab View commit details
    Browse the repository at this point in the history
  3. Fix typo in comment

    Introduced by c2da1a5
    
    Reported-by: Michael Paquier <[email protected]>
    Discussion: https://postgr.es/m/[email protected]
    Álvaro Herrera committed Jun 26, 2025
    Configuration menu
    Copy the full SHA
    a3994ec View commit details
    Browse the repository at this point in the history
  4. Simplify vacuum VM update logging counters

    We can simplify the VM counters added in dc6acfd to
    lazy_vacuum_heap_page() and lazy_scan_new_or_empty().
    
    We won't invoke lazy_vacuum_heap_page() unless there are dead line
    pointers, so we know the page can't be all-visible.
    
    In lazy_scan_new_or_empty(), we only update the VM if the page-level
    hint PD_ALL_VISIBLE is clear, and the VM bit cannot be set if the page
    level bit is clear because a subsequent page update would fail to clear
    the visibility map bit.
    
    Simplify the logic for determining which log counters to increment based
    on this knowledge. Doing so is worthwhile because the old logic was
    confusing and misguided.
    
    Author: Melanie Plageman <[email protected]>
    Reviewed-by: Nazir Bilal Yavuz <[email protected]>
    Reviewed-by: Masahiko Sawada <[email protected]>
    Discussion: https://postgr.es/m/flat/CAAKRu_a9w_n2mwY%3DG4LjfWTvRTJtjbfvnYAKi4WjO8QXHHrA0g%40mail.gmail.com
    melanieplageman committed Jun 26, 2025
    Configuration menu
    Copy the full SHA
    060f420 View commit details
    Browse the repository at this point in the history
  5. Remove unused check in heap_xlog_insert()

    8e03eb9 reverted the commit 39b66a9 which allowed freezing
    in the heap_insert() code path but forgot to remove the corresponding
    check in heap_xlog_insert(). This code is extraneous but not harmful.
    However, cleaning it up makes it very clear that, as of now, we do not
    support any freezing of pages in the heap_insert() path.
    
    Author: Melanie Plageman <[email protected]>
    Reviewed-by: Tomas Vondra <[email protected]>
    Discussion: https://postgr.es/m/flat/CAAKRu_Zp4Pi-t51OFWm1YZ-cctDfBhHCMZ%3DEx6PKxv0o8y2GvA%40mail.gmail.com
    Backpatch-through: 14
    melanieplageman committed Jun 26, 2025
    Configuration menu
    Copy the full SHA
    483f724 View commit details
    Browse the repository at this point in the history
  6. Correct misleading error messages

    Commit 7d6d2c4 dropped opcintype from the index AM strategy
    translation API.  But some error messages about failed lookups still
    mentioned it, even though it was not used for the lookup.  Fix by
    removing ipcintype from the error messages as well.
    petere committed Jun 26, 2025
    Configuration menu
    Copy the full SHA
    95e12d4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7fb3c38 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2025

  1. Correct list of files in src/backend/lib/README

    binaryheap.c and stringinfo.c have been moved to src/common/ by
    respectively 5af0263 and 26aaf97, and the README patched here
    still mentioned these two files as available in src/backend/lib/.
    
    Author: Aleksander Alekseev <[email protected]>
    Discussion: https://postgr.es/m/CAJ7c6TPg-=tC+fzq0tGTtmL7r79-aWeCmpwAyQiGu0N+sKGj8Q@mail.gmail.com
    michaelpq committed Jun 27, 2025
    Configuration menu
    Copy the full SHA
    94e2e15 View commit details
    Browse the repository at this point in the history
  2. Fix CheckPointReplicationSlots() with max_replication_slots == 0

    ca307d5 made CheckPointReplicationSlots() unconditionally call
    ReplicationSlotsComputeRequiredLSN().  It causes an assertion trap when
    max_replication_slots equals 0.  This commit makes
    CheckPointReplicationSlots() call ReplicationSlotsComputeRequiredLSN() only
    when at least one slot gets its last_saved_restart_lsn updated.  That avoids
    an assert trap and also saves some cycles when no one slot has
    last_saved_restart_lsn updated.
    
    Based on ideas from Dilip Kumar <[email protected]> and
    Hayato Kuroda <[email protected]>.
    
    Reported-by: Zhijie Hou <[email protected]>
    Discussion: https://postgr.es/m/OS0PR01MB5716BB506AF934376FF3A8BB947BA%40OS0PR01MB5716.jpnprd01.prod.outlook.com
    akorotkov committed Jun 27, 2025
    Configuration menu
    Copy the full SHA
    7195c80 View commit details
    Browse the repository at this point in the history
Loading