Skip to content

Commit

Permalink
keys: mark 49 as reserved
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
ajwerner committed Sep 22, 2022
1 parent f08a1b0 commit c1e88c0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/keys/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,20 @@ const (
SQLInstancesTableID = 46
SpanConfigurationsTableID = 47
RoleIDSequenceID = 48

// reservedSystemTableID is a sentinel constant to reserve the use of the
// last remaining constant reserved descriptor ID. In 22.1, we added support
// for creating system tables with dynamically allocated IDs. Use of this ID
// should be well motivated. There are cases where having a constant ID can
// dramatically simplify cluster bootstrap. Any table which is not going to
// be used quite early in the server startup process should not need a
// constant ID. Note that there are some values we could reclaim, like 9 and
// 10, but let's not go there unless we need to.
reservedSystemTableID = 49
)

var _ = reservedSystemTableID // defeat the unused linter

// CommentType the type of the schema object on which a comment has been
// applied.
type CommentType int
Expand Down

0 comments on commit c1e88c0

Please sign in to comment.