psql CLI: warn about ongoing transaction on exit - Mailing list pgsql-bugs

From Martin Pitt
Subject psql CLI: warn about ongoing transaction on exit
Date
Msg-id 20070916183421.GA5926@piware.de
Whole thread Raw
Responses Re: psql CLI: warn about ongoing transaction on exit  (Neil Conway <neilc@samurai.com>)
List pgsql-bugs
Hello PostgreSQL developers,

we recently got a wishlist Debian bug [1] that asks for the psql
command line tool to "warn about an ongoing transaction on exit:

users=> begin;
BEGIN
[...]
users=> \q
$ ...

It would be really nice if psql prompted me whether I wanted to do
this. As it stands, it just rolls back the transaction."

Does this stand a chance to get implemented/accepted? I'm happy to
look into this and craft a patch if you would adopt it upstream.

Thanks,

Martin

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439943

--
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

pgsql-bugs by date:

Previous
From: ""
Date:
Subject: BUG #3611: The first INSERT return -1 with prepare() before
Next
From: "Vijay"
Date:
Subject: BUG #3612: Error Message in server.log