"Robert James" <srobertjames(at)gmail(dot)com> writes:
> "ERROR: failed to fetch old tuple for AFTER trigger
> I'm running Postgres 8.2.1 on Windows XP.
I seem to remember a bug with this symptom; so your first move ought to
be to update to 8.2.latest. If you can still reproduce it afterwards,
please send a test case to pgsql-bugs.
regards, tom lane