aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-04-06 21:29:46 -0700
committerAndres Freund <andres@anarazel.de>2022-04-06 21:29:46 -0700
commitfbfe6910eca0d6a61cbcdd27cdd5a8d9de6477fa (patch)
tree73123a2f334b257ea65c2ccf03e842260d603fb2 /src
parent1db4e5a4eeec0c5e240628923daf0e0a666f8c04 (diff)
downloadpostgresql-fbfe6910eca0d6a61cbcdd27cdd5a8d9de6477fa.tar.gz
postgresql-fbfe6910eca0d6a61cbcdd27cdd5a8d9de6477fa.zip
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 <andres@anarazel.de> Discussion: https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de
Diffstat (limited to 'src')
-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 dbbeac5a82f..3a794e54d60 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 690312308f5..a2e8507fd65 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 cc6f2700d6f..db30c72073d 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"