mirror of
https://github.com/postgres/postgres.git
synced 2026-01-13 12:22:55 +03:00
pgstat.c is very long, and it's hard to find an order that makes sense and is likely to be maintained over time. Splitting the different pieces into separate files makes that a lot easier. With a few exceptions, this commit just moves code around. Those exceptions are: - adding file headers for new files - removing 'static' from functions - adapting pgstat_assert_is_up() to work across TUs - minor comment adjustments git diff --color-moved=dimmed-zebra is very helpful separating code movement from code changes. The next commit in this series will reorder pgstat.[ch] contents to be a bit more coherent. Earlier revisions of this patch had "global" statistics (archiver, bgwriter, checkpointer, replication slots, SLRU, WAL) in one file, because each seemed small enough. However later commits will increase their size and their aggregate size is not insubstantial. It also just seems easier to split each type of statistic into its own file. Author: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de
32 lines
805 B
Makefile
32 lines
805 B
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile for backend/utils/activity
|
|
#
|
|
# Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
|
|
# Portions Copyright (c) 1994, Regents of the University of California
|
|
#
|
|
# src/backend/utils/activity/Makefile
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
subdir = src/backend/utils/activity
|
|
top_builddir = ../../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
OBJS = \
|
|
backend_progress.o \
|
|
backend_status.o \
|
|
pgstat_archiver.o \
|
|
pgstat_bgwriter.o \
|
|
pgstat_checkpointer.o \
|
|
pgstat_database.o \
|
|
pgstat_function.o \
|
|
pgstat_relation.o \
|
|
pgstat_replslot.o \
|
|
pgstat_subscription.o \
|
|
pgstat_wal.o \
|
|
pgstat_slru.o \
|
|
wait_event.o
|
|
|
|
include $(top_srcdir)/src/backend/common.mk
|