"Dave Page" <dpage@vale-housing.co.uk> writes:
>> Well, that's pretty clearly a null pointer dereference. Any chance of
>> mapping the instruction address back to something useful?
> Not sure how I would do that. Any hints?
gdb might produce something useful, with something like
x/32i 0xNNNN - 16
Failing that, see if you can get the linker to spit out a link map when
it builds psql.
regards, tom lane