mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-22 06:17:00 +08:00
Add compute_query_id GUC to control whether a query identifier should be computed by the core (off by default). It's thefore now possible to disable core queryid computation and use pg_stat_statements with a different algorithm to compute the query identifier by using a third-party module. To ensure that a single source of query identifier can be used and is well defined, modules that calculate a query identifier should throw an error if compute_query_id specified to compute a query id and if a query idenfitier was already calculated. Discussion: https://postgr.es/m/20210407125726.tkvjdbw76hxnpwfi@nol Author: Julien Rouhaud Reviewed-by: Alvaro Herrera, Nitin Jadhav, Zhihong Yu
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# 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 \
|
|
queryenvironment.o \
|
|
queryjumble.o \
|
|
rls.o \
|
|
sampling.o \
|
|
superuser.o \
|
|
timeout.o \
|
|
tzparser.o
|
|
|
|
# This location might depend on the installation directories. Therefore
|
|
# we can't substitute 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
|