[GENERAL] Logg errors during UPDATE

2008-12-12 Thread Thomas Kellerer
Hi, with Oracle I have the ability to tell the system to log errors during a long transaction into a separate table and proceed with the statement. This is quite handy when updating large tables and the update for one out of a million rows fails. The syntax is something like this: UPDATE LOG

Re: [GENERAL] Logg errors during UPDATE

2008-12-16 Thread Ivan Pavlov
Neiter LOG ERRORS nor REJECT LIMIT are implemented in PostgreSQL, though I agree they may be useful. Both can be simulated with a custom stored procedure which loops over a cursor and updates row-by-row, trapping errors along the way. This will, of course, be slower. regards, Ivan Pavlov On Dec