From: | durumdara <durumdara(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Am I in intransaction or in autocommit mode? |
Date: | 2009-06-30 08:35:01 |
Message-ID: | 4A49CE35.5060707@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi!
2009.06.29. 15:34 keltezéssel, A. Kretschmer írta:
> In response to durumdara :
>
>> Hi!
>>
>> Can I check with something that I'm in "in-transaction" or in autocommit
>> mode?
>> I wanna avoid the notices I got when I'm also in mode I need...
>>
>> For example:
>> "begin"
>> "begin" --- error notice...
>>
>
> Warning, not error.
>
> In psql, you can set the PROMPT:
>
> \set PROMPT1 '%/%R%x%# '
>
> test=# begin;
> BEGIN
> test=*#
>
Yes, warning... Hmmm... As I see no way to dispose this warning (except
psql)...
This is distrubing me a little, because if I use pre and post "rollback"
to surely release resources/transactions, and then my Pylons log can
full with warnings caused by double "begins" ("begin; rollback;"). I do
not check I'm in which transaction mode....
Thanks for your help:
dd
From | Date | Subject | |
---|---|---|---|
Next Message | valgog | 2009-06-30 08:46:31 | Re: Terrible Write Performance of a Stored Procedure |
Previous Message | Pedro Doria Meunier | 2009-06-30 08:27:27 | pgAdmin - no_spool |