Skip site navigation (1) Skip section navigation (2)

psql CLI: warn about ongoing transaction on exit

From: Martin Pitt <martin(at)piware(dot)de>
To: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: psql CLI: warn about ongoing transaction on exit
Date: 2007-09-16 18:34:21
Message-ID: 20070916183421.GA5926@piware.de (view raw or flat)
Thread:
Lists: 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

Responses

pgsql-bugs by date

Next:From: VijayDate: 2007-09-17 05:47:44
Subject: BUG #3612: Error Message in server.log
Previous:From: Philippe.ErrardDate: 2007-09-16 12:51:32
Subject: BUG #3611: The first INSERT return -1 with prepare() before

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group