Andrew Perrin <clists(at)perrin(dot)socsci(dot)unc(dot)edu> writes:
> Any advice will be most welcome.
I have no idea what the problem is, but gathering more data seems
like a good plan. Try turning on query logging at the postmaster
so you can see exactly what query the Perl code is sending ...
regards, tom lane