Thread: pgsql: Adjust the recent patch for reporting of deadlocked queries so

pgsql: Adjust the recent patch for reporting of deadlocked queries so

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/postmaster:
        pgstat.c (r1.170 -> r1.171)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/pgstat.c?r1=1.170&r2=1.171)
    pgsql/src/backend/storage/lmgr:
        deadlock.c (r1.52 -> r1.53)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/lmgr/deadlock.c?r1=1.52&r2=1.53)
    pgsql/src/include:
        pgstat.h (r1.72 -> r1.73)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/pgstat.h?r1=1.72&r2=1.73)