pgsql: Adjust the recent patch for reporting of deadlocked queries so - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Adjust the recent patch for reporting of deadlocked queries so
Date
Msg-id 20080324182236.AA07A7558DC@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
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)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Add a new ereport auxiliary function errdetail_log(), which works
Next
From: momjian@postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Add to TODO: > > * Research reducing deTOASTing in more places