strange commit behavior

Поиск
Список
Период
Сортировка
От Flavio Palumbo
Тема strange commit behavior
Дата
Msg-id F316DDACBDDA4AEDAC3A8A85887BDF2B@PALUMBOXP
обсуждение исходный текст
Ответы Re: strange commit behavior  (Thomas Kellerer <spam_eater@gmx.net>)
Re: strange commit behavior  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Re: strange commit behavior  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-general
Hi all,

I developed a little tool in Java that updates databases throught text
files.

In this tool there is an option that allows the user accepts a defined
amount of errors and save the well formed data.

To do this I start commitment control when the process begins and, at the
end, if the thershold is not reached or there are no errors I commit data,
else rollback.

I tested this tool under MySql and Oracle and everything went as expected.

Unfortunately postgres seems to work in a different way, cause if there is
just one error while the transaction is active I'm not able to commit the
well formed data in the db, no matter if the good records were inserted
sooner or later the error.

Does this behavior appears right for postgres ?

There is any way or workaround to achieve my goal ?

Any hint would be appreciated.

Flavio


-----------------------------------------------------------
Il presente messaggio non costituisce un impegno contrattuale tra SILMA S.r.l. ed il destinatario.
Le opinioni ivi espresse sono quelle dell'autore.
SILMA S.r.l. non assume alcuna responsabilita riguardo al contenuto del presente messaggio.
Il messaggio è destinato esclusivamente al destinatario.
Il contenuto e gli allegati sono da considerarsi di natura confidenziale

Nel caso abbiate ricevuto il presente messaggio per errore siete pregati di comunicarlo
alla casella segreteria@silmasoftware.com.


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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: MS Access and PostgreSQL - a warning to people thinking about it
Следующее
От: "Flavio Palumbo"
Дата:
Сообщение: Commit strange behavior