-
Notifications
You must be signed in to change notification settings - Fork 40
Add more columns/dimensions to pg_wait_sampling #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Open
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6cd4efa
Add profile_extended and history_extended views with additional dimen...
9208eb2
Update README to include information about new *_extended views
f0ee939
Fixes after review
Medvecrab 292aaa9
Fixes after review, part 2
Medvecrab da75db0
Add serialization
Medvecrab 46af7da
Fixing serialization
Medvecrab 64efec7
Add history reset
Medvecrab f6a2203
remove old functions for good
Medvecrab 09fc662
Do as pg_stat_statements does with different extension versions
Medvecrab 42b4828
Fixes after self-review
Medvecrab 01c45a4
Fix and add info about sampling dimensions to README
Medvecrab 885496f
Fixes after review
Medvecrab 5bc04b5
More fixes after review
Medvecrab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixes after self-review
- Loading branch information
commit 42b482814509c6cf63067a5537d04f0d1f6cf10d
There are no files selected for viewing
This file contains hidden or 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
76 changes: 53 additions & 23 deletions
expected/load.out
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,61 @@ | ||
CREATE EXTENSION pg_wait_sampling; | ||
\d pg_wait_sampling_current | ||
View "public.pg_wait_sampling_current" | ||
Column | Type | Modifiers | ||
------------+---------+----------- | ||
pid | integer | | ||
event_type | text | | ||
event | text | | ||
queryid | bigint | | ||
View "public.pg_wait_sampling_current" | ||
Column | Type | Collation | Nullable | Default | ||
---------------------+--------------------------+-----------+----------+--------- | ||
pid | integer | | | | ||
event_type | text | | | | ||
event | text | | | | ||
queryid | bigint | | | | ||
role_id | bigint | | | | ||
database_id | bigint | | | | ||
parallel_leader_pid | integer | | | | ||
is_regular_backend | boolean | | | | ||
backend_type | text | | | | ||
backend_state | text | | | | ||
proc_start | timestamp with time zone | | | | ||
client_addr | text | | | | ||
client_hostname | text | | | | ||
appname | text | | | | ||
|
||
\d pg_wait_sampling_history | ||
View "public.pg_wait_sampling_history" | ||
Column | Type | Modifiers | ||
------------+--------------------------+----------- | ||
pid | integer | | ||
ts | timestamp with time zone | | ||
event_type | text | | ||
event | text | | ||
queryid | bigint | | ||
View "public.pg_wait_sampling_history" | ||
Column | Type | Collation | Nullable | Default | ||
---------------------+--------------------------+-----------+----------+--------- | ||
pid | integer | | | | ||
event_type | text | | | | ||
event | text | | | | ||
queryid | bigint | | | | ||
role_id | bigint | | | | ||
database_id | bigint | | | | ||
parallel_leader_pid | integer | | | | ||
is_regular_backend | boolean | | | | ||
backend_type | text | | | | ||
backend_state | text | | | | ||
proc_start | timestamp with time zone | | | | ||
client_addr | text | | | | ||
client_hostname | text | | | | ||
appname | text | | | | ||
ts | timestamp with time zone | | | | ||
|
||
\d pg_wait_sampling_profile | ||
View "public.pg_wait_sampling_profile" | ||
Column | Type | Modifiers | ||
------------+---------+----------- | ||
pid | integer | | ||
event_type | text | | ||
event | text | | ||
queryid | bigint | | ||
count | bigint | | ||
View "public.pg_wait_sampling_profile" | ||
Column | Type | Collation | Nullable | Default | ||
---------------------+--------------------------+-----------+----------+--------- | ||
pid | integer | | | | ||
event_type | text | | | | ||
event | text | | | | ||
queryid | bigint | | | | ||
role_id | bigint | | | | ||
database_id | bigint | | | | ||
parallel_leader_pid | integer | | | | ||
is_regular_backend | boolean | | | | ||
backend_type | text | | | | ||
backend_state | text | | | | ||
proc_start | timestamp with time zone | | | | ||
client_addr | text | | | | ||
client_hostname | text | | | | ||
appname | text | | | | ||
count | bigint | | | | ||
|
||
DROP EXTENSION pg_wait_sampling; |
31 changes: 0 additions & 31 deletions
expected/load_1.out
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.