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

Expand a new external var tag #443

Merged
merged 1 commit into from
May 23, 2024

Conversation

jiaqizho
Copy link
Contributor

Change logs

External toast in CBDB have the fixed structure, the vartag_external used to tell which way to detoast it.

If you want to add an external toast implementation in the extension without changing the kernel, then you need to add a new tag in vartag_external.

The current change defines an extension generic tag which named VARTAG_CUSTOM, this kind of tag is not used in the kernel, which means that the datum returned from the extension should not be a toast with this kind of tag. This tag is only used within the extension.

Why are the changes needed?

nope

Does this PR introduce any user-facing change?

nope

How was this patch tested?

nope

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(One-time setup).
  • Learn the coding contribution guide, including our code conventions, workflow and more.
  • 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 request cloudberrydb/dev team for review and approval when your PR is ready🥳

@my-ship-it my-ship-it merged commit d678c24 into apache:main May 23, 2024
10 checks passed
foreyes pushed a commit to foreyes/cloudberrydb that referenced this pull request Jul 8, 2024
External toast in CBDB have the fixed structure, the vartag_external used to tell which way to detoast it.

If want to add an external toast implementation in the extension without changing the kernel, then need to
add a new tag in vartag_external.

The current change defines an extension generic tag which named VARTAG_CUSTOM, this kind of tag is not
used in the kernel, which means that the datum returned from the extension should not be a toast with this kind
of tag. This tag is only used within the extension.
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.

2 participants