Adjust the recent patch for reporting of deadlocked queries so that we report
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 24 Mar 2008 18:22:36 +0000 (18:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 24 Mar 2008 18:22:36 +0000 (18:22 +0000)
commit9b8e1eb375e6d8b8568a3441bdc316341fd7b640
tree62d8a4c9df4aebb411e96da4d1a73b5d095d29be
parent05fc744b967d15fa07c484ad87dd8cc943ad839f
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.
src/backend/postmaster/pgstat.c
src/backend/storage/lmgr/deadlock.c
src/include/pgstat.h