Alvaro Herrera <alvhe...@2ndquadrant.com> writes: > Maybe it would make sense to always log complete parameters for error > cases when that feature is enabled, and have the GUC only control the > lengths logged for non-error cases?
I could get behind that. It's a bit different from the original idea here, but I think it's closer to being real-world-useful. Another way to slice this up would be to have a USERSET GUC that controls truncation of parameter values in errors, and a separate SUSET GUC that controls it for the non-error statement logging cases. I'm not sure how much that's actually worth, but if we feel that truncation in error cases can be useful, that's how I'd vote to expose it. regards, tom lane