Skip to content

Commit

Permalink
Merge pull request #118420 from cockroachdb/blathers/backport-staging…
Browse files Browse the repository at this point in the history
…-v22.2.18-118335

staging-v22.2.18: ttljob: add hint to use PK in delete query
  • Loading branch information
celiala authored Jan 30, 2024
2 parents 0ad77cf + ccbde5f commit 0803c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sql/ttl/ttljob/ttljob_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (t *ttlProcessor) work(ctx context.Context) error {
return errors.Wrapf(err, "error fetching table relation name for TTL")
}

relationName = tn.FQString()
relationName = tn.FQString() + "@" + lexbase.EscapeSQLIdent(primaryIndexDesc.Name)
return nil
}); err != nil {
return err
Expand Down

0 comments on commit 0803c71

Please sign in to comment.