doc: Update \timing and add LAST_QUERY_MS variable documentation#12
Open
kirkw wants to merge 1 commit intoNikolayS:claude/test-timing-idea-n0hWBfrom
Open
doc: Update \timing and add LAST_QUERY_MS variable documentation#12kirkw wants to merge 1 commit intoNikolayS:claude/test-timing-idea-n0hWBfrom
kirkw wants to merge 1 commit intoNikolayS:claude/test-timing-idea-n0hWBfrom
Conversation
Update the \timing command documentation to clarify that: - Query execution time is always measured regardless of \timing setting - \timing only controls whether timing information is displayed - The measured time is always available in LAST_QUERY_MS variable Add comprehensive documentation for the LAST_QUERY_MS variable: - Explains it contains execution time in milliseconds (3 decimal places) - Always updated after each query execution - Initialized to 0 at session start - Includes usage example for conditional logic This completes the documentation for the LAST_QUERY_MS feature.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds comprehensive documentation for the LAST_QUERY_MS variable feature and updates the
\timingcommand documentation.Changes
1. Updated
\timingcommand documentation\timingsetting\timingonly controls display, not measurementLAST_QUERY_MSvariable2. Added
LAST_QUERY_MSvariable documentationLAST_QUERY_MSvariable0at session startFiles Changed
doc/src/sgml/ref/psql-ref.sgml: Updated\timingsection and addedLAST_QUERY_MSvariable documentation (+38 lines)Related
This completes the documentation for the feature implemented in commit
735349f21a6("psql: Always measure query timing, store in LAST_QUERY_MS variable").