postgresql/contrib/auto_explain/meson.build
Robert Haas e972dff6c3 auto_explain: Add new GUC, auto_explain.log_extension_options.
The associated value should look like something that could be
part of an EXPLAIN options list, but restricted to EXPLAIN options
added by extensions.

For example, if pg_overexplain is loaded, you could set
auto_explain.log_extension_options = 'DEBUG, RANGE_TABLE'.
You can also specify arguments to these options in the same manner
as normal e.g. 'DEBUG 1, RANGE_TABLE false'.

Reviewed-by: Matheus Alcantara <matheusssilv97@gmail.com>
Reviewed-by: Lukas Fittl <lukas@fittl.com>
Discussion: http://postgr.es/m/CA+Tgmob-0W8306mvrJX5Urtqt1AAasu8pi4yLrZ1XfwZU-Uj1w@mail.gmail.com
2026-04-06 15:19:42 -04:00

34 lines
728 B
Meson

# Copyright (c) 2022-2026, PostgreSQL Global Development Group
auto_explain_sources = files(
'auto_explain.c',
)
if host_system == 'windows'
auto_explain_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
'--NAME', 'auto_explain',
'--FILEDESC', 'auto_explain - logging facility for execution plans',])
endif
auto_explain = shared_module('auto_explain',
auto_explain_sources,
kwargs: contrib_mod_args,
)
contrib_targets += auto_explain
tests += {
'name': 'auto_explain',
'sd': meson.current_source_dir(),
'bd': meson.current_build_dir(),
'regress': {
'sql': [
'alter_reset',
'extension_options',
],
},
'tap': {
'tests': [
't/001_auto_explain.pl',
],
},
}