-
Notifications
You must be signed in to change notification settings - Fork 192
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
CLI: set localhost
as default for database hostname in verdi setup
#4908
CLI: set localhost
as default for database hostname in verdi setup
#4908
Conversation
The default was actually being defined on the option, however, it was taken from the `pgsu.DEFAULT_DSN` dictionary, which defines the database hostname to be `None`. Still, 9 out of 10 times the database is on the localhost so not having this as a default is kind of annoying and unnecessary.
thanks @sphuber - to my knowledge, there actually is a difference between In particular, I believe that What is annoying about the default? |
Codecov Report
@@ Coverage Diff @@
## develop #4908 +/- ##
========================================
Coverage 80.07% 80.07%
========================================
Files 518 518
Lines 36683 36683
========================================
Hits 29371 29371
Misses 7312 7312
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Maybe circumstantial evidence but I have been using
I always have to specify |
I might be wrong (I'll check). Can you please share the uncommented lines of your |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second thought, I think you are right.
'localhost'
is the correct default there, while None
is a good thing to try for pgsu (because it is the only way you can access the psql shell without a password).
You may want to include this information in the commit message.
This is the default config of postgres-12 on Ubuntu 20.04 |
Cheers, will do. |
#4908) The default was actually being defined on the option, however, it was taken from the `pgsu.DEFAULT_DSN` dictionary, which defines the database hostname to be `None`. Still, 9 out of 10 times the database is on the localhost so not having this as a default is kind of annoying and unnecessary. Note that `pgsu` specifies `None` as the default because this is at times the only way the psql shell can be accessed without a password. Cherry-pick: 6c4ced3
Fixes #4907
The default was actually being defined on the option, however, it was
taken from the
pgsu.DEFAULT_DSN
dictionary, which defines the databasehostname to be
None
. Still, 9 out of 10 times the database is on thelocalhost so not having this as a default is kind of annoying and
unnecessary.