summaryrefslogtreecommitdiff
path: root/src/backend/storage/ipc/procarray.c
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2012-11-13 15:56:28 -0300
committerSimon Riggs <simon@2ndQuadrant.com>2012-11-13 15:56:28 -0300
commitf66e7ab6db30b7893493c4dfd5d642bef93b350f (patch)
tree1f983796718805dd17b4c1b5dab327f9d487bf61 /src/backend/storage/ipc/procarray.c
parent8805ff6580621d0daee350826de5211d6bb36ec3 (diff)
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 a3b0540aea7..371b1045a13 100644
--- a/src/backend/storage/ipc/procarray.c
+++ b/src/backend/storage/ipc/procarray.c
@@ -1565,6 +1565,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)