You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
147996: sql: add security_invoker feature flag and grammar support r=Dedej-Bergin a=Dedej-Bergin
This change adds the `enable_view_security_invoker` feature flag. It also adds grammar support for the following two statements:
```
CREATE VIEW <view_name> WITH ( security_invoker = true ) AS SELECT * FROM <table_name>;
ALTER VIEW <view_name> SET ( security_invoker = false );
```
Informs: #138918
Epic: CRDB-48807
Release note: None
149757: asim,roachpb: follow-up to #149699 r=wenyihu6 a=tbg
- **tests: add missing RaftCPUPerWrite**
- **roachpb: rm a test**
- **roachpb: improve a comment**
- **asim: include WriteBytesPerSecond in StoreMetrics**
- **asim: fix argument passing in BasicLoad.Generate**
Epic: CRDB-25222
149767: util: add envAlwaysKeepTestLogsEnabled r=rickystewart a=wenyihu6
This commit adds support for a new environment variable,
COCKROACH_ALWAYS_KEEP_TEST_LOGS, which ensures that crdb and test logs are kept
even when tests fail. Example usage:
```
./dev test .... -- --test_env=COCKROACH_ALWAYS_KEEP_TEST_LOGS=true
```
Epic: none
Release note: none
149848: sql: default sql.stats.error_on_concurrent_create_stats.enabled to false r=mw5h a=mw5h
'sql.stats.error_on_concurrent_create_stats.enabled' was introduced with a default value of true to ease backporting. Going forward, we want this to default to false so that customers are not alarmed by error counters increasing.
Informs: #148413
Release note (ops change): The value of
sql.stats.error_on_concurrent_create_stats.enabled now defaults to false, supressing error counters for auto stats jobs that fail due to concurrent stats jobs in progress.
Co-authored-by: Bergin Dedej <[email protected]>
Co-authored-by: Tobias Grieger <[email protected]>
Co-authored-by: wenyihu6 <[email protected]>
Co-authored-by: Matt White <[email protected]>
Copy file name to clipboardExpand all lines: docs/generated/settings/settings-for-tenants.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -356,7 +356,7 @@ sql.stats.automatic_partial_collection.fraction_stale_rows float 0.05 target fra
356
356
sql.stats.automatic_partial_collection.min_stale_rows integer 100 target minimum number of stale rows per table that will trigger a partial statistics refresh application
sql.stats.detailed_latency_metrics.enabled boolean false label latency metrics with the statement fingerprint. Workloads with tens of thousands of distinct query fingerprints should leave this setting false. (experimental, affects performance for workloads with high fingerprint cardinality) application
359
-
sql.stats.error_on_concurrent_create_stats.enabled boolean true set to true to error on concurrent CREATE STATISTICS jobs, instead of skipping them application
359
+
sql.stats.error_on_concurrent_create_stats.enabled boolean false set to true to error on concurrent CREATE STATISTICS jobs, instead of skipping them application
360
360
sql.stats.flush.enabled boolean true if set, SQL execution statistics are periodically flushed to disk application
361
361
sql.stats.flush.interval duration 10m0s the interval at which SQL execution statistics are flushed to disk, this value must be less than or equal to 1 hour application
362
362
sql.stats.forecasts.enabled boolean true when true, enables generation of statistics forecasts by default for all tables application
Copy file name to clipboardExpand all lines: docs/generated/settings/settings.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -311,7 +311,7 @@
311
311
<tr><td><divid="setting-sql-stats-automatic-partial-collection-min-stale-rows" class="anchored"><code>sql.stats.automatic_partial_collection.min_stale_rows</code></div></td><td>integer</td><td><code>100</code></td><td>target minimum number of stale rows per table that will trigger a partial statistics refresh</td><td>Serverless/Dedicated/Self-Hosted</td></tr>
312
312
<tr><td><divid="setting-sql-stats-cleanup-recurrence" class="anchored"><code>sql.stats.cleanup.recurrence</code></div></td><td>string</td><td><code>@hourly</code></td><td>cron-tab recurrence for SQL Stats cleanup job</td><td>Serverless/Dedicated/Self-Hosted</td></tr>
313
313
<tr><td><divid="setting-sql-stats-detailed-latency-metrics-enabled" class="anchored"><code>sql.stats.detailed_latency_metrics.enabled</code></div></td><td>boolean</td><td><code>false</code></td><td>label latency metrics with the statement fingerprint. Workloads with tens of thousands of distinct query fingerprints should leave this setting false. (experimental, affects performance for workloads with high fingerprint cardinality)</td><td>Serverless/Dedicated/Self-Hosted</td></tr>
314
-
<tr><td><divid="setting-sql-stats-error-on-concurrent-create-stats-enabled" class="anchored"><code>sql.stats.error_on_concurrent_create_stats.enabled</code></div></td><td>boolean</td><td><code>true</code></td><td>set to true to error on concurrent CREATE STATISTICS jobs, instead of skipping them</td><td>Serverless/Dedicated/Self-Hosted</td></tr>
314
+
<tr><td><divid="setting-sql-stats-error-on-concurrent-create-stats-enabled" class="anchored"><code>sql.stats.error_on_concurrent_create_stats.enabled</code></div></td><td>boolean</td><td><code>false</code></td><td>set to true to error on concurrent CREATE STATISTICS jobs, instead of skipping them</td><td>Serverless/Dedicated/Self-Hosted</td></tr>
315
315
<tr><td><divid="setting-sql-stats-flush-enabled" class="anchored"><code>sql.stats.flush.enabled</code></div></td><td>boolean</td><td><code>true</code></td><td>if set, SQL execution statistics are periodically flushed to disk</td><td>Serverless/Dedicated/Self-Hosted</td></tr>
316
316
<tr><td><divid="setting-sql-stats-flush-interval" class="anchored"><code>sql.stats.flush.interval</code></div></td><td>duration</td><td><code>10m0s</code></td><td>the interval at which SQL execution statistics are flushed to disk, this value must be less than or equal to 1 hour</td><td>Serverless/Dedicated/Self-Hosted</td></tr>
317
317
<tr><td><divid="setting-sql-stats-forecasts-enabled" class="anchored"><code>sql.stats.forecasts.enabled</code></div></td><td>boolean</td><td><code>true</code></td><td>when true, enables generation of statistics forecasts by default for all tables</td><td>Serverless/Dedicated/Self-Hosted</td></tr>
0 commit comments