8000 Comparing Haofei:master...postgres:master · Haofei/postgres · GitHub
[go: up one dir, main page]

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: Haofei/postgres
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
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
  • 3 commits
  • 6 files changed
  • 2 contributors

Commits on Jul 8, 2025

  1. Fix a couple more places in docs for pg_lsn change

    Also, revert Unicode linestyle to ASCII.
    
    Reported-by: Japin Li <japinli@hotmail.com>
    Discussion: https://postgr.es/m/ME0P300MB04453A39931F95805C4205A8B64FA@ME0P300MB0445.AUSP300.PROD.OUTLOOK.COM
    Álvaro Herrera committed Jul 8, 2025
    Configuration menu
    Copy the full SHA
    aa39b4e 9D15 View commit details
    Browse the repository at this point in the history
  2. Fix low-probability memory leak in XMLSERIALIZE(... INDENT).

    xmltotext_with_options() did not consider the possibility that
    pg_xml_init() could fail --- most likely due to OOM.  If that
    happened, the already-parsed xmlDoc structure would be leaked.
    Oversight in commit 483bdb2.
    
    Bug: #18981
    Author: Dmitry Kovalenko <d.kovalenko@postgrespro.ru>
    Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
    Discussion: https://postgr.es/m/18981-9bc3c80f107ae925@postgresql.org
    Backpatch-through: 16
    tglsfdc committed Jul 8, 2025
    Configuration menu
    Copy the full SHA
    e03c952 View commit details
    Browse the repository at this point in the history
  3. Fix up misuse of "volatile" in contrib/xml2.

    What we want in these places is "xmlChar *volatile ptr",
    not "volatile xmlChar *ptr".  The former means that the
    pointer variable itself needs to be treated as volatile,
    while the latter says that what it points to is volatile.
    Since the point here is to ensure that the pointer variables
    don't go crazy after a longjmp, it's the former semantics
    that we need.  The misplacement of "volatile" also led
    to needing to cast away volatile in some places.
    
    Also fix a number of places where variables that are assigned to
    within a PG_TRY and then used after it were not initialized or
    not marked as volatile.  (A few buildfarm members were issuing
    "may be used uninitialized" warnings about some of these variables,
    which is what drew my attention to this area.)  In most cases
    these variables were being set as the last step within the PG_TRY
    block, which might mean that we could get away without the "volatile"
    marking.  But doing that seems unsafe and is definitely not per our
    coding conventions.
    
    These problems seem to have come in with 7320611, so no need
    for back-patch.
    tglsfdc committed Jul 8, 2025
    Configuration menu
    Copy the full SHA
    9300188 View commit details
    Browse the repository at this point in the history
Loading
0