Skip to content

Commit

Permalink
Merge pull request #118336 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-23.1-118318

release-23.1: ttljob: add hint to use PK in delete/select query
  • Loading branch information
rafiss authored Jan 29, 2024
2 parents 08f2039 + 485b0f1 commit 78d7c48
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 @@ -121,7 +121,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 78d7c48

Please sign in to comment.