mirror of
https://github.com/postgres/postgres.git
synced 2026-05-25 02:40:42 -04:00
If pg_stash_advice.persist = true, stashed advice will be written to pg_stash_advice.tsv in the data directory, periodically and at shutdown. On restart, stash modifications are locked out until this file has been reloaded, but queries will not be, so there may be a short window after startup during which previously-stashed advice is not automatically applied. Author: Robert Haas <rhaas@postgresql.org> Co-authored-by: Lukas Fittl <lukas@fittl.com> Discussion: https://postgr.es/m/CA+Tgmob87qsWa-VugofU6epuV0H5XjWZGMbQas4Q-ADKmvSyBg@mail.gmail.com
29 lines
727 B
Makefile
29 lines
727 B
Makefile
# contrib/pg_stash_advice/Makefile
|
|
|
|
MODULE_big = pg_stash_advice
|
|
OBJS = \
|
|
$(WIN32RES) \
|
|
pg_stash_advice.o \
|
|
stashfuncs.o \
|
|
stashpersist.o
|
|
|
|
EXTENSION = pg_stash_advice
|
|
DATA = pg_stash_advice--1.0.sql
|
|
PGFILEDESC = "pg_stash_advice - store and automatically apply plan advice"
|
|
|
|
REGRESS = pg_stash_advice pg_stash_advice_utf8
|
|
TAP_TESTS = 1
|
|
EXTRA_INSTALL = contrib/pg_plan_advice
|
|
|
|
ifdef USE_PGXS
|
|
PG_CPPFLAGS = -I$(includedir_server)/extension
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
PG_CPPFLAGS = -I$(top_srcdir)/contrib/pg_plan_advice
|
|
subdir = contrib/pg_stash_advice
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|