Adjust the recent patch for reporting of deadlocked queries so that we report

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9b8e1eb375e6d8b8568a3441bdc316341fd7b640
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-03-24T18:22:36Z
Releases: 8.4.0
Adjust the recent patch for reporting of deadlocked queries so that we report
query texts only to the server log.  This eliminates the issue of possible
leaking of security-sensitive data in other sessions' queries.  Since the
log is presumed secure, we can now log the queries of all sessions involved
in the deadlock, whether or not they belong to the same user as the one
reporting the failure.

Files

PathChange+/−
src/backend/postmaster/pgstat.c modified +3 −3
src/backend/storage/lmgr/deadlock.c modified +23 −13
src/include/pgstat.h modified +2 −2