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

sql,jobs: add owner_id column to system.scheduled_jobs table #98737

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

andyyang890
Copy link
Collaborator

This patch adds a new owner_id column to the system.scheduled_jobs
table, which corresponds to the existing owner column, in order to
bring us closer to the eventual goal of allowing renaming of users.
Migrations are also added to alter and backfill the table in older
clusters.

Part of #87079

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@andyyang890 andyyang890 force-pushed the migrate_scheduled_jobs branch 5 times, most recently from f91668f to 7899839 Compare March 18, 2023 05:28
This patch adds a basic implementation of `func (p *planner) UserID()`
to help cut down on repeated code. Eventually, we'll want to cache the
user ID somewhere to prevent having to perform a lookup each time.

Release note: None
@andyyang890 andyyang890 force-pushed the migrate_scheduled_jobs branch from 7899839 to 846b0dc Compare March 18, 2023 17:24
This patch adds a new `owner_id` column to the `system.scheduled_jobs`
table, which corresponds to the existing `owner` column, in order to
bring us closer to the eventual goal of allowing renaming of users.
Migrations are also added to alter and backfill the table in older
clusters.

Release note: None
@andyyang890 andyyang890 force-pushed the migrate_scheduled_jobs branch from 846b0dc to 9ddb584 Compare March 18, 2023 17:37
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