Skip to content

Refactor functions to use SPI instead of heap specific functions#435

Open
za-arthur wants to merge 1 commit into
citusdata:mainfrom
za-arthur:artur/simple_heap_delete
Open

Refactor functions to use SPI instead of heap specific functions#435
za-arthur wants to merge 1 commit into
citusdata:mainfrom
za-arthur:artur/simple_heap_delete

Conversation

@za-arthur

@za-arthur za-arthur commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Functions cron_unschedule, cron_unschedule_named, LoadCronJobList used heap specific functions to select or modify records which fails if pg_cron tables are created using table access method other than heap.

This PR refactors that functions to use SPI (similar to other places like ScheduleCronJob) instead of direct call of systable_beginscan and simple_heap_delete functions, which are heap specific.

There are few systable_beginscan calls left which are used to scan system tables, but this is intentional.

Functions `cron_unschedule`, `cron_unschedule_named`, `LoadCronJobList`
used heap specific functions to select or modify records which fails if
pg_cron tables are created using table access method other than `heap`.
@za-arthur

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

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.

1 participant