-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport to 2.2] [YSQL] #5051 For non-prepared statements, optimize …
…pg_statistic system table lookups Summary: Allow caching of negative (not found) results for pg_statistic and pg_statistic_ext tables since we do not change those in YSQL yet. Additionally, update the debug utilities for YSQL by removing the general variable 'yb_debug_mode' and adding: yb_debug_report_error_stacktrace: - Add stacktrace information to every YSQL error. - Effectively replaces (yb_debug_mode). yb_debug_log_catcache_events: - Log cache misses and cache refresh events. yb_debug_log_internal_restarts: - Log automatic statement (or transaction) restarts - e.g. read-restarts and schema mismatch restarts. yb_debug_log_docdb_requests: - Log protobufs of all outgoing DocDB requests. Test Plan: Jenkins: rebase: 2.2 In ysqlsh, run the following queries and check that no 'Catalog cache miss' entries are found in the tserver's postgresql log. ``` -- setup tables create table t1(k int primary key, v int); create table t2(k int primary key, v int); -- Execute the query once to load up the caches select * from t1, t2 where t1.k = t2.k; -- enable cache events log and re-run the query. set yb_debug_log_catcache_events = true; select * from t1, t2 where t1.k = t2.k; select * from t1, t2 where t1.k = t2.k; select * from t1, t2 where t1.k = t2.k; -- reset (disable) the cache events log. reset yb_debug_log_catcache_events; ``` Reviewers: neha, neil, dmitry, alex Reviewed By: alex Subscribers: yql, kannan Differential Revision: https://phabricator.dev.yugabyte.com/D9034
- Loading branch information
Showing
10 changed files
with
203 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.