TRANSACTIONS

From: Jose Soares <jose(at)sferacarta(dot)com>
To: hackers <pgsql-hackers(at)postgresql(dot)org>, general <pgsql-general(at)postgresql(dot)org>
Subject: TRANSACTIONS
Date: 2000-02-22 11:47:44
Message-ID: 38B27760.DB921B57@sferacarta.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Hi all,

The transactions should be the way to distinguish a relational database
from others no-relational databases, (MySQL is the right example).
We are very proud of PostgreSQL transactions but seems that it doesn't
work in the right way.
It shoud be important to be sure that PostgreSQL is compliant with
SQL92.
I need absolutely to use transactions but until now I could not use it,
in my case it is completely unusable.
I tried transactions in other databases and I compared it with
PostgreSQL and no one of which I tried has the same PostgreSQL behavior.

I tried the following script:
-------------------------------------------------------
PostgreSQL:
-------------------------------------------------------
begin transaction;
create table tmp(a int);
insert into tmp values (1);
insert into tmp values (1000000000000000000000000000000000);
ERROR: pg_atoi: error reading "1000000000000000000000000000000000":
Numerical result out of range
commit;
select * from tmp;
ERROR: tmp: Table does not exist.
-------------------------------------------------------
Interbase, Oracle,Informix,Solid,Ms-Access,DB2:
-------------------------------------------------------
connect hygea.gdb;
create table temp(a int);
insert into temp values (1);
insert into temp values (1000000000000000000000000000000000);
commit;
select * from temp;

arithmetic exception, numeric overflow, or string truncation

A
===========
1

I would like to know what the Standard says and who is in the rigth path
PostgreSQL or the others, considering the two examples reported below.

Comments?

--
Jose' Soares
Bologna, Italy Jose(at)sferacarta(dot)com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dmitry Samersoff 2000-02-22 12:13:12 RE: [HACKERS] TRANSACTIONS
Previous Message Marco Giardini 2000-02-22 11:45:29 auto number

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-02-22 11:58:52 Re: [HACKERS] Beta for 4:30AST ... ?
Previous Message Alessio Bragadini 2000-02-22 11:26:59 Big join breaks psql