Patrick Welche <prlw1(at)newn(dot)cam(dot)ac(dot)uk> writes:
> and the reason for the SIGSEGV, is that somehow, text_int4(text *string) in
> src/backend/utils/adt/int.c is called with string=(text *)0x0, so obviously
> this is a problem!
Um. Probably you have a NULL value in "tblPerson"."USN" somewhere?
There are a lot of functions without adequate defenses against NULL
inputs :-( --- we've been cleaning them up slowly, but evidently you
found another one.
regards, tom lane