diff options
author | Robert Haas <rhaas@postgresql.org> | 2011-02-17 10:29:42 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2011-02-17 10:29:42 -0500 |
commit | f196738534baa95badd9d8f1debb5822240ebc6b (patch) | |
tree | b075145b6f34a735f2ec42047ce574aeed5aafdc /src/backend | |
parent | 9408783aefee9d58dd9daf53c8d6b24ab226f05b (diff) | |
download | postgresql-f196738534baa95badd9d8f1debb5822240ebc6b.tar.gz postgresql-f196738534baa95badd9d8f1debb5822240ebc6b.zip |
Add some words of caution to elog.c.
Stephen Frost, somewhat rewritten by me
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/utils/error/elog.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index a1a449f2ddc..5679d5b9c1a 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -3,6 +3,12 @@ * elog.c * error logging and reporting * + * Because of the extremely high rate at which log messages can be generated, + * we need to be mindful of the performance cost of obtaining any information + * that may be logged. Also, it's important to keep in mind that this code may + * get called from within an aborted transaction, in which case operations + * such as syscache lookups are unsafe. + * * Some notes about recursion and errors during error processing: * * We need to be robust about recursive-error scenarios --- for example, |