Received: from bologna.nettuno.it (bologna.nettuno.it [193.43.2.1]) by hub.org (8.9.3/8.9.3) with ESMTP id GAA33047; Tue, 22 Feb 2000 06:48:47 -0500 (EST) (envelope-from jose@sferacarta.com) Received: from proxy.sferacarta.com (sfcabop1.nettuno.it [193.207.10.213]) by bologna.nettuno.it (8.9.3/8.9.3/NETTuno 4.1) with ESMTP id MAA08977; Tue, 22 Feb 2000 12:48:41 +0100 (MET) Received: from rosso.sferacarta.com (sferacarta.com) [10.20.30.5] by proxy.sferacarta.com with esmtp (Exim 2.05 #1 (Debian)) id 12NEkz-0007qb-00; Tue, 22 Feb 2000 12:49:37 +0000 Message-ID: <38B27760.DB921B57@sferacarta.com> Date: Tue, 22 Feb 2000 12:47:44 +0100 From: Jose Soares Organization: Sfera Carta X-Mailer: Mozilla 4.6 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: hackers , general Subject: TRANSACTIONS Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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