Live data from Hacker News

Postgres 11 – A First Look

craigkerstiens.com

1–10 of 193 posts

Re: Postgres 11 – A First Look

#3
> Now you can quit Postgres by simply typing quit or exit. Previously you had to use Ctrl + D or \q

While this is good to help out beginners a bit, people should really learn Ctrl + D. It works practically everywhere and saves tons of time guessing/remembering and even typing the correct incantation for the program you want to exit.

Re: Postgres 11 – A First Look

#4
I love PG. heaps better than the alternatives, for many reasons. My main one, is native IPv6 object support.

I found the migration from 9.x to 10.x deeply painful, I think the one-time cost of the dump-restore cycle hurt me far more than I expected. I very much hope the transition to 11 can be done more expeditiously.

Re: Postgres 11 – A First Look

#5
post #3

> Now you can quit Postgres by simply typing quit or exit. Previously you had to use Ctrl + D or \q While this is good to help out beginners a bit, people should really learn Ctrl + D. It works practically everywhere and saves tons of time guessing/remembering and even typing the correct incantation for the program you want to exit.

What other apps use Ctrl+D ? I can't think of a single one.

Re: Postgres 11 – A First Look

#6
post #3

> Now you can quit Postgres by simply typing quit or exit. Previously you had to use Ctrl + D or \q While this is good to help out beginners a bit, people should really learn Ctrl + D. It works practically everywhere and saves tons of time guessing/remembering and even typing the correct incantation for the program you want to exit.

What other apps use Ctrl+D ? I can't think of a single one.

Practically any interactive shell. python or bash for instance. It's everywhere.

Re: Postgres 11 – A First Look

#7
post #3

> Now you can quit Postgres by simply typing quit or exit. Previously you had to use Ctrl + D or \q While this is good to help out beginners a bit, people should really learn Ctrl + D. It works practically everywhere and saves tons of time guessing/remembering and even typing the correct incantation for the program you want to exit.

What other apps use Ctrl+D ? I can't think of a single one.

Any command-line that uses readline[0], which in practice is an absolute ton of things.

This includes nodejs's repl, irb, ed, gdb, tftp, virsh, gpg --card-edit, and others.

It also works for programs that read stdin as if it's a file if you're using a modern readline shell to run them (e.g. cat, tee, etc)

[0]: https://en.wikipedia.org/wiki/GNU_Readline

Re: Postgres 11 – A First Look

#8
post #3

> Now you can quit Postgres by simply typing quit or exit. Previously you had to use Ctrl + D or \q While this is good to help out beginners a bit, people should really learn Ctrl + D. It works practically everywhere and saves tons of time guessing/remembering and even typing the correct incantation for the program you want to exit.

What other apps use Ctrl+D ? I can't think of a single one.

[deleted]

Re: Postgres 11 – A First Look

#9
post #3

> Now you can quit Postgres by simply typing quit or exit. Previously you had to use Ctrl + D or \q While this is good to help out beginners a bit, people should really learn Ctrl + D. It works practically everywhere and saves tons of time guessing/remembering and even typing the correct incantation for the program you want to exit.

What other apps use Ctrl+D ? I can't think of a single one.

Most apps that read from stdin handle EOF correctly.

Re: Postgres 11 – A First Look

#10
post #3

> Now you can quit Postgres by simply typing quit or exit. Previously you had to use Ctrl + D or \q While this is good to help out beginners a bit, people should really learn Ctrl + D. It works practically everywhere and saves tons of time guessing/remembering and even typing the correct incantation for the program you want to exit.

Yet, principle of least surprise. What is more surprising, Ctrl+D working or quit/exit not working? Maybe I am an outlier but I would try exit/quit/bye first.
Post reply on HN