aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/ipc/procarray.c
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2012-11-13 15:54:01 -0300
committerSimon Riggs <simon@2ndQuadrant.com>2012-11-13 15:54:01 -0300
commit68f7fe140bebc2b9bd2953934539cedb603fd01b (patch)
tree9d48c05dbfc665e784ef88c3a5946b1cef0977b9 /src/backend/storage/ipc/procarray.c
parent8f40ad1f4e75d3def4e86b665c8048a4c9676427 (diff)
downloadpostgresql-68f7fe140bebc2b9bd2953934539cedb603fd01b.tar.gz
postgresql-68f7fe140bebc2b9bd2953934539cedb603fd01b.zip
Clarify docs on hot standby lock release
Andres Freund and Simon Riggs
Diffstat (limited to 'src/backend/storage/ipc/procarray.c')
-rw-r--r--src/backend/storage/ipc/procarray.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c
index d38164caa73..8c0d7b0ea95 100644
--- a/src/backend/storage/ipc/procarray.c
+++ b/src/backend/storage/ipc/procarray.c
@@ -1564,6 +1564,11 @@ ProcArrayInstallImportedXmin(TransactionId xmin, TransactionId sourcexid)
* We don't worry about updating other counters, we want to keep this as
* simple as possible and leave GetSnapshotData() as the primary code for
* that bookkeeping.
+ *
+ * Note that if any transaction has overflowed its cached subtransactions
+ * then there is no real need include any subtransactions. That isn't a
+ * common enough case to worry about optimising the size of the WAL record,
+ * and we may wish to see that data for diagnostic purposes anyway.
*/
RunningTransactions
GetRunningTransactionData(void)