Re: [INTERFACES] Proper use of Transactions...

From: Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il>
To: Matthew Hagerty <matthew(at)venux(dot)net>, pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] Proper use of Transactions...
Date: 1999-08-09 08:09:43
Message-ID: l03130300b3d43c2fef72@[147.233.159.109]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

At 23:38 +0300 on 08/08/1999, Matthew Hagerty wrote:

> All this is compounded because I am using PHP3 as an Apache module to
> access PostgreSQL and I am receiving the following error in my Apache log:
>
> NOTICE: (transaction aborted): queries ignored until END
>
> I'm not sure where to start looking for the problem. Any insight would be
> greatly appreciated.

This is just normal. It indicates that since an error has occured, the rest
of the commands in the transaction, if they are issued, will be ignored -
untill you say either "commit" or "rollback". It gives you the effect of
not doing anything more in a transaction if an error occured in the middle
of it.

If errors which are not database errors occur in the middle (for example,
you run a validity test on the user's data and it fails), you should catch
those errors and issue a rollback yourself.

This has nothing to do with the type of interface you are using (in your
case PHP3), unless that interface does not allow you to make validity tests
or to capture errors. I don't think there is damage to the database if a
transaction is not committed or rolled back before the connection
terminates - but a guru opinion would have more value than mine.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Alex P. Rudnev 1999-08-09 09:43:31 Re: [ANNOUNCE] Re: your mail
Previous Message Hicham Mouline 1999-08-09 07:15:22 SocketException