• Joe Conway's avatar
    Expose control file data via SQL accessible functions. · dc7d70ea
    Joe Conway authored
    Add four new SQL accessible functions: pg_control_system(),
    pg_control_checkpoint(), pg_control_recovery(), and pg_control_init()
    which expose a subset of the control file data.
    
    Along the way move the code to read and validate the control file to
    src/common, where it can be shared by the new backend functions
    and the original pg_controldata frontend program.
    
    Patch by me, significant input, testing, and review by Michael Paquier.
    dc7d70ea
Makefile 970 Bytes
#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for utils/misc
#
# IDENTIFICATION
#    src/backend/utils/misc/Makefile
#
#-------------------------------------------------------------------------

subdir = src/backend/utils/misc
top_builddir = ../../../..
include $(top_builddir)/src/Makefile.global

override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)

OBJS = guc.o help_config.o pg_config.o pg_controldata.o pg_rusage.o \
       ps_status.o rls.o sampling.o superuser.o timeout.o tzparser.o

# This location might depend on the installation directories. Therefore
# we can't subsitute it into pg_config.h.
ifdef krb_srvtab
override CPPFLAGS += -DPG_KRB_SRVTAB='"$(krb_srvtab)"'
endif

include $(top_srcdir)/src/backend/common.mk

# guc-file is compiled as part of guc
guc.o: guc-file.c

# Note: guc-file.c is not deleted by 'make clean',
# since we want to ship it in distribution tarballs.
clean:
	@rm -f lex.yy.c