Re: [HACKERS] Logging parameters values on bind error

2012-10-08 Thread Tom Lane
Jehan-Guillaume de Rorthais writes: > PFA a patch that catch any error while creating the query plan and add > parameters values to the error message if log_statement or > log_min_duration_statement would have logged it. If that works, it's only by accident --- you're not supposed to add more inf

[HACKERS] Logging parameters values on bind error

2012-10-08 Thread Jehan-Guillaume de Rorthais
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, We were struggling today with some java code binding values violating some constraints in a prepared statement. We don't own the code and couldn't make tests with it. So we tried to find if PostgreSQL was able to log binded values when the BIND o