1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00
Files
postgres/contrib/pg_stash_advice/meson.build
Robert Haas c10edb102a pg_stash_advice: Allow stashed advice to be persisted to disk.
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
2026-04-07 10:11:36 -04:00

44 lines
978 B
Meson

# Copyright (c) 2022-2026, PostgreSQL Global Development Group
pg_stash_advice_sources = files(
'pg_stash_advice.c',
'stashfuncs.c',
'stashpersist.c'
)
if host_system == 'windows'
pg_stash_advice_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
'--NAME', 'pg_stash_advice',
'--FILEDESC', 'pg_stash_advice - store and automatically apply plan advice',])
endif
pg_stash_advice = shared_module('pg_stash_advice',
pg_stash_advice_sources,
include_directories: [pg_plan_advice_inc, include_directories('.')],
kwargs: contrib_mod_args,
)
contrib_targets += pg_stash_advice
install_data(
'pg_stash_advice--1.0.sql',
'pg_stash_advice.control',
kwargs: contrib_data_args,
)
tests += {
'name': 'pg_stash_advice',
'sd': meson.current_source_dir(),
'bd': meson.current_build_dir(),
'regress': {
'sql': [
'pg_stash_advice',
'pg_stash_advice_utf8',
],
},
'tap': {
'tests': [
't/001_persist.pl',
],
},
}