pgstat: move pgstat.c to utils/activity.
authorAndres Freund <andres@anarazel.de>
Thu, 7 Apr 2022 04:29:46 +0000 (21:29 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 7 Apr 2022 04:29:46 +0000 (21:29 -0700)
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

src/backend/postmaster/Makefile
src/backend/utils/activity/Makefile
src/backend/utils/activity/pgstat.c [moved from src/backend/postmaster/pgstat.c with 99% similarity]

index dbbeac5a82f675ccc1fc024bbc545868a139fa12..3a794e54d6051e38514ee6e395cc985435b5a5e7 100644 (file)
@@ -21,7 +21,6 @@ OBJS = \
    fork_process.o \
    interrupt.o \
    pgarch.o \
-   pgstat.o \
    postmaster.o \
    shell_archive.o \
    startup.o \
index 690312308f5c48f2e04fe6e565cbb068418a39f1..a2e8507fd655b40a65ea5d11e79f2421e317ff9c 100644 (file)
@@ -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 \
similarity index 99%
rename from src/backend/postmaster/pgstat.c
rename to src/backend/utils/activity/pgstat.c
index cc6f2700d6f95240188d01cc6c9ce09b03ded8d3..db30c72073db25286c9d22e7c1d79d0e55e73279 100644 (file)
@@ -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"