-
Notifications
You must be signed in to change notification settings - Fork 2
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
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: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf/6301~1
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/6301
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 6 commits
- 78 files changed
- 3 contributors
Commits on Dec 9, 2025
-
This adds a bunch of hash_make* and shmem_hash_make* macros to make it easier and less error prone to create HTABs. These macros are implemented as wrappers around the already existing hash_create function. Using the new macros is preferred, due to the additional compile time checks that they bring. Co-Authored-By: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 26293bf - Browse repository at this point
Copy the full SHA 26293bfView commit details -
Use hash_make macros throughout the codebase
This shows how our code base looks when using the new APIs. This has some typesafety, readability and maintanability benefits, but it also introduces some backpatching problems. These backpatching problems cannot be resolved by backporting the new hash_make macros, because some of them require C11 (which we only require on master for now). I think it's unlikely that we'll need to backpatch things in code that creates hashtables though, so it could still be worth it to do this complete refactor. At the very least we should choose a few places where we use the new macros to make sure they have coverage.
Configuration menu - View commit details
-
Copy full SHA for d109386 - Browse repository at this point
Copy the full SHA d109386View commit details -
Configuration menu - View commit details
-
Copy full SHA for b6f7df2 - Browse repository at this point
Copy the full SHA b6f7df2View commit details -
For lists we've had a new foreach style macros since 14dd0f2. This adds a similar macro for hash tables. This new foreach_hash macro makes iterating over the items in an HTAB as simple as iterating over the items in a List. The only additional thing to keep in mind is that when exiting the loop early you need to call foreach_hash_term.
Configuration menu - View commit details
-
Copy full SHA for 71a676b - Browse repository at this point
Copy the full SHA 71a676bView commit details -
Use foreach_hash macro throughout the codebase
This starts using the new foreach_hash macro throughout the codebase. This makes code easier to read, but obviously does introduce backpatching problems. We can choose not to do this refactor to avoid that. Or we could instead choose to do the refactor and then backpatch these new macros so they can be used in backpatched code. At the very least we should choose a few places where we use the new macros to make sure they have coverage.
Configuration menu - View commit details
-
Copy full SHA for ce85be4 - Browse repository at this point
Copy the full SHA ce85be4View commit details -
[CF 6301] v3 - Safer hash table initialization macro
This branch was automatically generated by a robot using patches from an email thread registered at: https://commitfest.postgresql.org/patch/6301 The branch will be overwritten each time a new patch version is posted to the thread, and also periodically to check for bitrot caused by changes on the master branch. Patch(es): https://www.postgresql.org/message-id/DESS1U66SWHO.2JT1YL2Q20K0F@jeltef.nl Author(s): Bertrand Drouvot, Jelte Fennema-Nio
Commitfest Bot committedDec 9, 2025 Configuration menu - View commit details
-
Copy full SHA for eb4d24b - Browse repository at this point
Copy the full SHA eb4d24bView commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff cf/6301~1...cf/6301