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
154051: sql: add setting to gate leased descriptors for vtables r=rafiss a=rafiss
This adds a cluster setting to control if we will use leased descriptors to populate virtual tables. It's off by default, and we plan to enable it eventually in a later release.
As part of this, we also update the remaining places where we call GetAllDescriptors or related functions to make those use leased descriptors if the setting is enabled.
fixes#154043
Release note (sql change): Added the
sql.catalog.allow_leased_descriptors.enabled cluster setting, which is false by default. When set to true, queries that access the pg_catalog or information_schema can use cached leased descriptors to populate the data in those tables, with the tradeoff that some of the data could be stale.
Co-authored-by: Rafi Shamim <[email protected]>
Copy file name to clipboardExpand all lines: docs/generated/settings/settings-for-tenants.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -177,6 +177,7 @@ sql.auth.change_own_password.enabled boolean false controls whether a user is al
177
177
sql.auth.grant_option_for_owner.enabled boolean true determines whether the GRANT OPTION for privileges is implicitly given to the owner of an object application
178
178
sql.auth.grant_option_inheritance.enabled boolean true determines whether the GRANT OPTION for privileges is inherited through role membership application
179
179
sql.auth.public_schema_create_privilege.enabled boolean true determines whether to grant all users the CREATE privileges on the public schema when it is created application
180
+
sql.catalog.allow_leased_descriptors.enabled boolean false if true, catalog views (crdb_internal, information_schema, pg_catalog) can use leased descriptors for improved performance application
180
181
sql.closed_session_cache.capacity integer 1000 the maximum number of sessions in the cache application
181
182
sql.closed_session_cache.time_to_live integer 3600 the maximum time to live, in seconds application
182
183
sql.contention.event_store.capacity byte size 64 MiB the in-memory storage capacity per-node of contention event store application
Copy file name to clipboardExpand all lines: docs/generated/settings/settings.html
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -214,6 +214,7 @@
214
214
<tr><td><divid="setting-sql-auth-grant-option-for-owner-enabled" class="anchored"><code>sql.auth.grant_option_for_owner.enabled</code></div></td><td>boolean</td><td><code>true</code></td><td>determines whether the GRANT OPTION for privileges is implicitly given to the owner of an object</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
215
215
<tr><td><divid="setting-sql-auth-grant-option-inheritance-enabled" class="anchored"><code>sql.auth.grant_option_inheritance.enabled</code></div></td><td>boolean</td><td><code>true</code></td><td>determines whether the GRANT OPTION for privileges is inherited through role membership</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
216
216
<tr><td><divid="setting-sql-auth-public-schema-create-privilege-enabled" class="anchored"><code>sql.auth.public_schema_create_privilege.enabled</code></div></td><td>boolean</td><td><code>true</code></td><td>determines whether to grant all users the CREATE privileges on the public schema when it is created</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
217
+
<tr><td><divid="setting-sql-catalog-allow-leased-descriptors-enabled" class="anchored"><code>sql.catalog.allow_leased_descriptors.enabled</code></div></td><td>boolean</td><td><code>false</code></td><td>if true, catalog views (crdb_internal, information_schema, pg_catalog) can use leased descriptors for improved performance</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
217
218
<tr><td><divid="setting-sql-closed-session-cache-capacity" class="anchored"><code>sql.closed_session_cache.capacity</code></div></td><td>integer</td><td><code>1000</code></td><td>the maximum number of sessions in the cache</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
218
219
<tr><td><divid="setting-sql-closed-session-cache-time-to-live" class="anchored"><code>sql.closed_session_cache.time_to_live</code></div></td><td>integer</td><td><code>3600</code></td><td>the maximum time to live, in seconds</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
0 commit comments