transactions not working properly ?

Поиск
Список
Период
Сортировка
От Ali Baba
Тема transactions not working properly ?
Дата
Msg-id 20050817125314.56244.qmail@web52506.mail.yahoo.com
обсуждение исходный текст
Ответы Re: transactions not working properly ?  (Douglas McNaught <doug@mcnaught.org>)
Re: transactions not working properly ?  (Michael Fuhr <mike@fuhr.org>)
Re: transactions not working properly ?  (jtv@xs4all.nl)
Список pgsql-hackers
Hi,
can any one describe how the transaction are being
handled in postgres.
i.e.
function given below should actually insert the desire
values in test table but it do not save them.
START TRANSACTION;
create or replace function testFunc() returns int as
$$
declare 
x integer;
begin    
x := 1;    
insert into test values (210,20);
x := x/0;

RETURN 0;

exception
when others then   raise info 'error generated ';   commit;   RETURN 0;
end;
$$ language plpgsql;

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Upcoming back-branch releases
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: pl/Ruby, deprecating plPython and Core