#27954: PostgreSQL dbshell exits on CTRL-C
-------------------------------------+-------------------------------------
               Reporter:  Chris      |          Owner:  nobody
  Sinchok                            |
                   Type:             |         Status:  assigned
  Uncategorized                      |
              Component:  Database   |        Version:  1.10
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 I love to use dbshell, but have a nitpick with how it works for Postgres.
 When I'm using psql normally, I use ctrl-c to cancel a query, or to just
 reset the prompt. However, when I CTRL-C within dbshell, it throws a
 KeyboardInterrupt.

 Perhaps we could override the SIGINT handler directly before launching the
 psql subprocess, and restore the handler in the finally block? I will
 attach a sample patch.

--
Ticket URL: <https://code.djangoproject.com/ticket/27954>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.b0c878c9bf550d1492f1773b0d65d799%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to