Hi!
Thanks ljb and Tom Lane - it's exactly what I wanted.I read documentation to 7.3 so I couldn't find PQresultErrorField function.I'm suprised, that such necessary functionality exist only in 7.4 version.
Thanks once again, Adam Bukla