Skip to content

Feature: Support custom wal rmgr#189

Merged
my-ship-it merged 4 commits intoapache:mainfrom
gfphoenix78:feature-custom-wal-rmgr
Oct 31, 2023
Merged

Feature: Support custom wal rmgr#189
my-ship-it merged 4 commits intoapache:mainfrom
gfphoenix78:feature-custom-wal-rmgr

Conversation

@gfphoenix78
Copy link
Copy Markdown
Contributor

closes: #ISSUE_Number


Change logs

Describe your change clearly, including what problem is being solved or what feature is being added.

If it has some breaking backward or forward compatibility, please clary.

Why are the changes needed?

Describe why the changes are necessary.

Does this PR introduce any user-facing change?

If yes, please clarify the previous behavior and the change this PR proposes.

How was this patch tested?

Please detail how the changes were tested, including manual tests and any relevant unit or integration tests.

Contributor's Checklist

Here are some reminders and checklists before/when submitting your pull request, please check them:

  • Make sure your Pull Request has a clear title and commit message. You can take git-commit template as a reference.
  • Sign the Contributor License Agreement as prompted for your first-time contribution.
  • List your communication in the GitHub Issues or Discussions (if has or needed).
  • Document changes.
  • Add tests for the change
  • Pass make installcheck
  • Pass make -C src/test installcheck-cbdb-parallel
  • Feel free to @cloudberrydb/dev team for review and approval when your PR is ready🥳

jeff-davis and others added 4 commits September 5, 2023 13:18
Add a new rmgr method, rm_decode, and use that rather than a switch
statement.

In preparation for rmgr extensibility.

Reviewed-by: Julien Rouhaud
Discussion: https://postgr.es/m/ed1fb2e22d15d3563ae0eb610f7b61bb15999c0a.camel%40j-davis.com
Discussion: https://postgr.es/m/20220118095332.6xtlcjoyxobv6cbk@jrouhaud
Allow extensions to specify a new custom resource manager (rmgr),
which allows specialized WAL. This is meant to be used by a Table
Access Method or Index Access Method.

Prior to this commit, only Generic WAL was available, which offers
support for recovery and physical replication but not logical
replication.

Reviewed-by: Julien Rouhaud, Bharath Rupireddy, Andres Freund
Discussion: https://postgr.es/m/ed1fb2e22d15d3563ae0eb610f7b61bb15999c0a.camel%40j-davis.com
Change two macros to be static inline functions instead to keep the
data type consistent. This avoids a "comparison is always true"
warning that was occurring with -Wtype-limits. In the process, change
the names to look less like macros.

Discussion: https://postgr.es/m/20220407063505.njnnrmbn4sxqfsts@alap3.anarazel.de
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Sep 5, 2023

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ gfphoenix78
❌ jeff-davis
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hiiii, @gfphoenix78 welcome!🎊 Thanks for taking the effort to make our project better! 🙌 Keep making such awesome contributions!

@gfphoenix78 gfphoenix78 changed the title Feature custom wal rmgr Feature: Support custom wal rmgr Sep 5, 2023
Comment thread doc/src/sgml/custom-rmgr.sgml
Comment thread src/include/access/rmgr.h
Comment thread doc/src/sgml/custom-rmgr.sgml
Comment thread src/bin/pg_waldump/pg_waldump.c
@my-ship-it my-ship-it merged commit f892f60 into apache:main Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants