Re: Improvement to psql's connection defaults

2019-12-27 Thread Alvaro Herrera
On 2019-Dec-16, Daniel Gustafsson wrote: > On 16 Dec 2019, at 15:47, Alvaro Herrera wrote: > > > Please, where did you find this "form"? > > It seems to be from the wiki: > > https://wiki.postgresql.org/wiki/Submitting_a_Patch#Patch_submission OK, I made a few edits there and in other relat

Re: Improvement to psql's connection defaults

2019-12-17 Thread Christoph Moench-Tegeder
## Tomas Zubiri (m...@tomaszubiri.com): > We already established that a tcp connection was subpar in terms of > latency, we shall note then that a tcp connection is subpar in terms > of security. It's an entirely different thing, I'd argue. I'm not even convinced that an error message is a bad th

Re: Improvement to psql's connection defaults

2019-12-16 Thread Tomas Zubiri
To summarize possible enhancements to the current patch: a- Don't hide failed attempted connections when defaults are used. b- Attempt to connect via other common socket locations "/tmp". c- New: Display the complete command used once a successful connection has been made, so running plain psql wo

Re: Improvement to psql's connection defaults

2019-12-16 Thread Tomas Zubiri
Tom, Chris, thank you for your responses. > There's an excellent manpage for psql, which can also be found online: > https://www.postgresql.org/docs/current/app-psql.html > I'm a little confused as to why people don't read the documentation and > turn to the 'net - that's bound to dig up a lot of

Re: Improvement to psql's connection defaults

2019-12-16 Thread Daniel Gustafsson
> On 16 Dec 2019, at 15:47, Alvaro Herrera wrote: > Please, where did you find this "form"? It seems to be from the wiki: https://wiki.postgresql.org/wiki/Submitting_a_Patch#Patch_submission cheers ./daniel

Re: Improvement to psql's connection defaults

2019-12-16 Thread Alvaro Herrera
Hello, On 2019-Dec-15, Tomas Zubiri wrote: > Attached you will find my patch. Below you can find the form required > for submitting patches. > > Project name: Not sure, psql? > Uniquely identifiable file name, so we can tell the difference between > your v1 and v24: > [...] Please, where did yo

Re: Improvement to psql's connection defaults

2019-12-16 Thread Tom Lane
Tomas Zubiri writes: > The problem was that running the command psql without arguments > returned the following > error message: > psql: could not connect to server: No such file or directory > Is the server running locally and accepting > connections on Unix domain socket "/var/run/postgr

Re: Improvement to psql's connection defaults

2019-12-16 Thread Christoph Moench-Tegeder
## Tomas Zubiri (m...@tomaszubiri.com): > The problem was that running the command psql without arguments There's an excellent manpage for psql, which can also be found online: https://www.postgresql.org/docs/current/app-psql.html In there you'll find a section "Connecting to a Database", with t

Improvement to psql's connection defaults

2019-12-16 Thread Tomas Zubiri
Hello, this week I decided to pursue an error a bit further than usual, even after having fixed it for myself, I found that I could fix it for future newcomers, especially those running containerized distributions. The problem was that running the command psql without arguments returned the follow