Re: [PATCH] immediately kill psql process if server is not running.

2025-01-20 Thread Srinath Reddy
On Sun, Jan 19, 2025 at 3:55 AM Tom Lane wrote: > > One idea that seems like it could be safe is to change the prompt, > so that your experience could be like > > postgres=# SELECT foo, bar, baz, > -# (uh-oh) > > This only helps for people who are entering multi-line SQL, +1,will look into it.

Re: [PATCH] immediately kill psql process if server is not running.

2025-01-19 Thread Srinath Reddy
On Sun, Dec 8, 2024 at 4:31 AM Tomas Vondra wrote: > > Yes, it's true that if the connection breaks, the client may not notice > that until the next command. But why would we want to kill psql in that > case? How does that improve the user experience? > > Hi Tomas,sorry for the (very!) late reply

Re: [PATCH] immediately kill psql process if server is not running.

2025-01-18 Thread Tom Lane
I wrote: > Anyway, I'm inclined to close this CF entry as returned-with-feedback. > Perhaps there's something we can do here, but the current patch feels > like a dead end. Also, the submitter seems to have disappeared: - The following addresses had permanent fatal errors - (reas

Re: [PATCH] immediately kill psql process if server is not running.

2025-01-18 Thread Tom Lane
Tomas Vondra writes: > Yes, it's true that if the connection breaks, the client may not notice > that until the next command. But why would we want to kill psql in that > case? How does that improve the user experience? > If you're in an interactive session (which is where this matters), and > yo

Re: [PATCH] immediately kill psql process if server is not running.

2024-12-07 Thread Tomas Vondra
On 11/8/24 19:42, Srinath Reddy Sadipiralla wrote: > Hi , > > When a user tries to enter a large query, thinking the server is still > running, and to their surprise, they discover that the server has > crashed or stopped, I have observed that the psql process will still be > running if it is idle

[PATCH] immediately kill psql process if server is not running.

2024-11-08 Thread Srinath Reddy Sadipiralla
Hi , When a user tries to enter a large query, thinking the server is still running, and to their surprise, they discover that the server has crashed or stopped, I have observed that the psql process will still be running if it is idle even after the server crashes or stops. solved this