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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Adjust the recent patch for reporting of deadlocked queries so
Date: 2008-03-24 18:22:36
Message-ID: 20080324182236.AA07A7558DC@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2008-03-24 18:24:30 pgsql: Add to TODO: > > * Research reducing deTOASTing in more places
Previous Message Tom Lane 2008-03-24 18:08:47 pgsql: Add a new ereport auxiliary function errdetail_log(), which works