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

PendingDelete: expand the pending deletes interface #442

Merged
merged 5 commits into from
May 24, 2024

Conversation

jiaqizho
Copy link
Contributor

@jiaqizho jiaqizho commented May 21, 2024

Change logs

The pending deletes in CBDB can only mount the relfilenode.

Current change expand the pending deletes interface, make self-defined structure can be mount in the pending delete list, also can use the self-defined callback decide how to delete the resource. It's very helper for the UFile or other extension which will use the different local/remote resource.

Why are the changes needed?

expand the pending delete

Does this PR introduce any user-facing change?

nope

How was this patch tested?

none

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🥳

@jiaqizho jiaqizho changed the title PendingDelete: expand the pending deletes interface [WIP]PendingDelete: expand the pending deletes interface May 21, 2024
@jiaqizho jiaqizho force-pushed the expand-pending-delete-interface branch from 19c14b6 to e545a96 Compare May 21, 2024 07:11
@jiaqizho jiaqizho force-pushed the expand-pending-delete-interface branch from e545a96 to 626c3ff Compare May 21, 2024 08:43
@jiaqizho jiaqizho changed the title [WIP]PendingDelete: expand the pending deletes interface PendingDelete: expand the pending deletes interface May 22, 2024
src/include/catalog/storage.h Outdated Show resolved Hide resolved
src/backend/catalog/storage.c Outdated Show resolved Hide resolved
src/backend/catalog/storage.c Show resolved Hide resolved
src/backend/catalog/storage.c Show resolved Hide resolved
src/backend/catalog/storage_directory_table.c Show resolved Hide resolved
src/backend/catalog/storage.c Outdated Show resolved Hide resolved
src/backend/catalog/storage.c Show resolved Hide resolved
@my-ship-it my-ship-it merged commit 9b9fd5b into apache:main May 24, 2024
10 checks passed
foreyes pushed a commit to foreyes/cloudberrydb that referenced this pull request Jul 8, 2024
The pending deletes in CBDB can only mount the relfilenode.

Current change expand the pending deletes interface, make self-defined structure can be mount in the
pending delete list, also can use the self-defined callback decide how to delete the resource. It's very
helper for the UFile or other extension which will use the different local/remote resource.
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.

3 participants