Skip to content

Commit

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

release-23.2: ttljob: add hint to use PK in delete/select query
  • Loading branch information
rafiss authored Jan 29, 2024
2 parents 472a9cb + 5cd0b04 commit 8b725bf
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 @@ -143,7 +143,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 8b725bf

Please sign in to comment.