summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2022-04-07 04:29:46 +0000
committerAndres Freund2022-04-07 04:29:46 +0000
commitfbfe6910eca0d6a61cbcdd27cdd5a8d9de6477fa (patch)
tree73123a2f334b257ea65c2ccf03e842260d603fb2
parent1db4e5a4eeec0c5e240628923daf0e0a666f8c04 (diff)
pgstat: move pgstat.c to utils/activity.
Now that pgstat is not related to postmaster anymore, src/backend/postmaster is not a well fitting directory. Author: Andres Freund <[email protected]> Discussion: https://postgr.es/m/[email protected]
-rw-r--r--src/backend/postmaster/Makefile1
-rw-r--r--src/backend/utils/activity/Makefile1
-rw-r--r--src/backend/utils/activity/pgstat.c (renamed from src/backend/postmaster/pgstat.c)2
3 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/postmaster/Makefile b/src/backend/postmaster/Makefile
index dbbeac5a82..3a794e54d6 100644
--- a/src/backend/postmaster/Makefile
+++ b/src/backend/postmaster/Makefile
@@ -21,7 +21,6 @@ OBJS = \
fork_process.o \
interrupt.o \
pgarch.o \
- pgstat.o \
postmaster.o \
shell_archive.o \
startup.o \
diff --git a/src/backend/utils/activity/Makefile b/src/backend/utils/activity/Makefile
index 690312308f..a2e8507fd6 100644
--- a/src/backend/utils/activity/Makefile
+++ b/src/backend/utils/activity/Makefile
@@ -16,6 +16,7 @@ include $(top_builddir)/src/Makefile.global
OBJS = \
backend_progress.o \
backend_status.o \
+ pgstat.o \
pgstat_archiver.o \
pgstat_bgwriter.o \
pgstat_checkpointer.o \
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/utils/activity/pgstat.c
index cc6f2700d6..db30c72073 100644
--- a/src/backend/postmaster/pgstat.c
+++ b/src/backend/utils/activity/pgstat.c
@@ -84,7 +84,7 @@
* Copyright (c) 2001-2022, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * src/backend/postmaster/pgstat.c
+ * src/backend/utils/activity/pgstat.c
* ----------
*/
#include "postgres.h"