Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: add a default AOST option to CREATE STATISTICS
Using CREATE STATISTICS without an AOST option results in a regular scan which could contend with concurrent transactions. This commit adds a default AOST option of -1us to the CREATE STATISTICS command to avoid this. Fixes: #72719 Release note (sql change): using the CREATE STATISTICS command without the AS OF SYSTEM TIME option could contend with concurrent transactions and cost performance. Running CREATE STATISTICS without specifying AS OF SYSTEM TIME now uses a default of -1us.
- Loading branch information