aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/misc.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2007-08-19 01:41:25 +0000
committerAndrew Dunstan <andrew@dunslane.net>2007-08-19 01:41:25 +0000
commitfd801f4faa8e0f00bc314b16549e3d8e8aa1b653 (patch)
tree246f025168f197ccd52ee322a2418ceee0cd0f78 /src/backend/utils/adt/misc.c
parente53a548794e7d79ab7466d2045db1049a63c0ee7 (diff)
downloadpostgresql-fd801f4faa8e0f00bc314b16549e3d8e8aa1b653.tar.gz
postgresql-fd801f4faa8e0f00bc314b16549e3d8e8aa1b653.zip
Provide for logfiles in machine readable CSV format. In consequence, rename
redirect_stderr to logging_collector. Original patch from Arul Shaji, subsequently modified by Greg Smith, and then heavily modified by me.
Diffstat (limited to 'src/backend/utils/adt/misc.c')
-rw-r--r--src/backend/utils/adt/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/adt/misc.c b/src/backend/utils/adt/misc.c
index 992f7889a2d..9683579436a 100644
--- a/src/backend/utils/adt/misc.c
+++ b/src/backend/utils/adt/misc.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/misc.c,v 1.56 2007/01/05 22:19:41 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/misc.c,v 1.57 2007/08/19 01:41:25 adunstan Exp $
*
*-------------------------------------------------------------------------
*/
@@ -144,10 +144,10 @@ pg_rotate_logfile(PG_FUNCTION_ARGS)
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
(errmsg("must be superuser to rotate log files"))));
- if (!Redirect_stderr)
+ if (!Logging_collector)
{
ereport(WARNING,
- (errmsg("rotation not possible because log redirection not active")));
+ (errmsg("rotation not possible because log collection not active")));
PG_RETURN_BOOL(false);
}