question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

resizing pgcli kills the query and connection

See original GitHub issue

Description

i work with a tiling window manager and every time, a long runnung query is active and i resize the terminal emulator i kill the current query:

(4, 'Interrupted system call')

and i have to quit pgcli and reconnect

Your environment

  • i3-gaps
  • alacritty terminal emulator
  • pgcli version 2.0.2
$ neofetch
       _,met$$$$$gg.          easteregg@x250
    ,g$$$$$$$$$$$$$$$P.       --------------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux buster/sid x86_64
 ,$$P'              `$$$.     Model: 20CM001RGE ThinkPad X250
',$$P       ,ggs.     `$$b:   Kernel: 4.20.14-towo.1-siduction-amd64
`d$$'     ,$P"'   .    $$$    Uptime: 6 days, 1 hour, 4 minutes
 $$P      d$'     ,    $$P    Packages: 3856 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: bash 5.0.2
 $$;      Y$b._   _,d$P'      Resolution: 3840x2160, 1920x1080
 Y$$.    `.`"Y$$$$P"'         WM: i3
 `$$b      "-.__              Terminal: alacritty
  `Y$$                        CPU: Intel i7-5600U (4) @ 3.200GHz
   `Y$$.                      GPU: Intel HD Graphics 5500
     `$$b.                    Memory: 5127MiB / 15765MiB
       `Y$$b.
          `"Y$b._
              `"""

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
amjithcommented, Mar 15, 2019

That’s awful. I just checked it on my machine and I’m able to reproduce it. I’ll dig into this one. Sorry about the trouble.

0reactions
verfriemelt-dot-orgcommented, Mar 17, 2019

thank you very much with all your efforts and the great responsetime!

Read more comments on GitHub >

github_iconTop Results From Across the Web

postgres - pgcli
Resizing pgcli terminal kills the connection to postgres in python 2.7 (Thanks: Amjith Ramanujam); Fix crash retrieving server version with --single-connection.
Read more >
pgcli/changelog.rst at main - GitHub
New formatter is added to export query result to sql format (such as sql-insert, ... Resizing pgcli terminal kills the connection to postgres...
Read more >
Queries on large database kill connection to the server, works ...
I'm trying to run queries on a large-ish database without killing the connection to the server. I'm using Postgres 12.1 on a mac...
Read more >
PostgreSQL deployments - Sourcegraph handbook
Connecting to Postgres. Install the command line tools; Command line only use (pgsql); Proxy for advanced use · Example queries · Performance monitoring....
Read more >
Kill a postgresql session/connection - database - Stack Overflow
Before executing this query, you have to REVOKE the CONNECT privileges to avoid new connections: REVOKE CONNECT ON DATABASE dbname FROM PUBLIC, username;....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found