TRANSACTIONS - Mailing list pgsql-general

From Jose Soares
Subject TRANSACTIONS
Date
Msg-id 38B27760.DB921B57@sferacarta.com
Whole thread Raw
Responses RE: [HACKERS] TRANSACTIONS  (Dmitry Samersoff <dms@wplus.net>)
Re: [HACKERS] TRANSACTIONS  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [GENERAL] TRANSACTIONS  (Lincoln Yeoh <lylyeoh@mecomb.com>)
List pgsql-general
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@sferacarta.com



pgsql-general by date:

Previous
From: Marco Giardini
Date:
Subject: auto number
Next
From: Dmitry Samersoff
Date:
Subject: RE: [HACKERS] TRANSACTIONS