Skip to content
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

feat(cli) add explain postgres data connectors setting #2993

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

brahyt-sf
Copy link
Contributor

@brahyt-sf brahyt-sf commented Aug 26, 2024

help

🕙[ 14:05:55 ] ➜ bin/run pg:settings:explain-data-connector-details postgresql-dbright-lively-63921 -h -a brahyt-dev-private
UNICORN, do things

USAGE
  $ heroku pg:settings:explain-data-connector-details [DATABASE] [VALUE] -a <value> [-r <value>]

FLAGS
  -a, --app=<value>     (required) app to run command against
  -r, --remote=<value>  git remote of app to use

DESCRIPTION
  UNICORN, do things

set on

🕙[ 14:05:32 ] ➜ bin/run pg:settings:explain-data-connector-details postgresql-dbright-lively-63921 on -a brahyt-dev-private
explain-data-connector-details has been set to true for postgresql-dbright-lively-63921.
SETTING ON DOES THINGS
2024-08-26T21:06:46.000000+00:00 app[heroku-postgres-replication-slot]: addon=polite-connector-37391 sample#spill_bytes=0 sample#spill_count=0 sample#spill_txns=0 sample#stats_reset_time=0001-01-01T00:00:00Z sample#stream_bytes=0 sample#stream_count=0 sample#stream_txns=0 sample#total_bytes=36835796 sample#total_txns=120160

set off

🕙[ 14:06:52 ] ➜ bin/run pg:settings:explain-data-connector-details postgresql-dbright-lively-63921 off -a brahyt-dev-private
explain-data-connector-details has been set to false for postgresql-dbright-lively-63921.
SETTING OFF DOES THINGS

no logs for connector details

pg settings help index

🕙[ 14:08:46 ] ➜ bin/run pg:settings -h
show your current database settings

USAGE
  $ heroku pg:settings [DATABASE] -a <value> [-r <value>]

FLAGS
  -a, --app=<value>     (required) app to run command against
  -r, --remote=<value>  git remote of app to use

DESCRIPTION
  show your current database settings

TOPICS
  pg:settings:auto-explain  Automatically log execution plans of queries without running EXPLAIN by hand.

COMMANDS
  pg:settings:auto-explain                    Automatically log execution plans of queries without running EXPLAIN by hand.
  pg:settings:explain-data-connector-details  UNICORN, do things
  pg:settings:log-connections                 Controls whether a log message is produced when a login attempt is made. Default is true.
  pg:settings:log-lock-waits                  Controls whether a log message is produced when a session waits longer than the deadlock_timeout to acquire a lock. deadlock_timeout is set to 1
                                              second
  pg:settings:log-min-duration-statement      The duration of each completed statement will be logged if the statement completes after the time specified by VALUE.
  pg:settings:log-statement                   log_statement controls which SQL statements are logged.
  pg:settings:track-functions                 track_functions controls tracking of function call counts and time used. Default is none.

@brahyt-sf brahyt-sf force-pushed the expose-explain-postgres-data-connectors-setting branch from 7fc396a to bd98ae2 Compare August 28, 2024 23:10
@brahyt-sf brahyt-sf force-pushed the expose-explain-postgres-data-connectors-setting branch from bd98ae2 to e67cea3 Compare August 28, 2024 23:23
@brahyt-sf brahyt-sf force-pushed the expose-explain-postgres-data-connectors-setting branch from e67cea3 to 38ffae2 Compare August 28, 2024 23:40
@brahyt-sf brahyt-sf force-pushed the expose-explain-postgres-data-connectors-setting branch from 38ffae2 to 0b48234 Compare September 12, 2024 20:43
@brahyt-sf brahyt-sf marked this pull request as ready for review September 12, 2024 20:44
@brahyt-sf brahyt-sf requested a review from a team as a code owner September 12, 2024 20:44
Copy link
Contributor

@sbosio sbosio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sbosio sbosio merged commit e358eb2 into main Sep 20, 2024
8 checks passed
@sbosio sbosio deleted the expose-explain-postgres-data-connectors-setting branch September 20, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants