From 6e90a64c5752db24e88311bbcdda6bd82b23da46 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Mon, 29 Oct 2007 22:17:41 +0000 Subject: [PATCH] In the previous commit message, I forgot to credit Simon Riggs who provided the patch, which I modified only slightly before applying. --- src/backend/postmaster/autovacuum.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c index 45428011d2..e2bc919e8f 100644 --- a/src/backend/postmaster/autovacuum.c +++ b/src/backend/postmaster/autovacuum.c @@ -2100,7 +2100,8 @@ next_worker: /* * Save the relation name for a possible error message, to avoid a * catalog lookup in case of an error. Note: they must live in a - * long-lived memory context. + * long-lived memory context because we call vacuum and analyze in + * different transactions. */ datname = get_database_name(MyDatabaseId); nspname = get_namespace_name(get_rel_namespace(tab->at_relid)); -- 2.39.5