Skip to content

backupccl: add an owner column behind the WITH PRIVILEGES option#59732

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
Elliebababa:show_backup_owner
Feb 3, 2021
Merged

backupccl: add an owner column behind the WITH PRIVILEGES option#59732
craig[bot] merged 1 commit intocockroachdb:masterfrom
Elliebababa:show_backup_owner

Conversation

@Elliebababa
Copy link
Copy Markdown
Contributor

Previously, when users perform RESTORE, they are ignorant of the original owner.

This PR gives ownership data as a column behind privileges.

Resolves: #57906.

Release note: None.

@Elliebababa Elliebababa requested review from a team and pbardea February 2, 2021 23:12
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@pbardea
Copy link
Copy Markdown
Contributor

pbardea commented Feb 2, 2021

These changes look good! I just had a question about the comment in the test.

Also, since this change has user-facing effects, we should add a release note in the commit message. Something like:
Release note(sql change): Update SHOW BACKUP ... WITH PRIVILEGES to display ownership information of objects in the backup.

@pbardea pbardea self-requested a review February 2, 2021 23:36
@Elliebababa Elliebababa force-pushed the show_backup_owner branch 2 times, most recently from a8511c0 to 251b442 Compare February 2, 2021 23:48
Previously, when users perform RESTORE, they are ignorant of the original owner.

This PR gives ownership data as a column behind privileges.

Resolves: cockroachdb#57906.

Release note(sql change): Update SHOW BACKUP ... WITH PRIVILEGES to display ownership information of objects in the backup.
Copy link
Copy Markdown
Contributor

@pbardea pbardea left a comment

Choose a reason for hiding this comment

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

LGTM

@Elliebababa
Copy link
Copy Markdown
Contributor Author

TFTR!

bors r=pbardea

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Feb 3, 2021

Build succeeded:

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.

backupccl: version of SHOW BACKUP that gives ownership data

3 participants