|
| 1 | +# Copyright (c) 2025, Postgres Professional |
| 2 | + |
| 3 | +# Does not support the PGXS infrastructure at this time. Please, compile as part |
| 4 | +# of the contrib source tree. |
| 5 | + |
| 6 | +pg_wait_sampling_sources=files( |
| 7 | +'collector.c', |
| 8 | +'pg_wait_sampling.c', |
| 9 | +) |
| 10 | + |
| 11 | +if host_system=='windows' |
| 12 | + pg_wait_sampling_sources+= rc_lib_gen.process(win32ver_rc,extra_args: [ |
| 13 | +'--NAME','pg_wait_sampling', |
| 14 | +'--FILEDESC','pg_wait_sampling - provides information about the current wait events for particular processes.',]) |
| 15 | +endif |
| 16 | + |
| 17 | +pg_wait_sampling=shared_module('pg_wait_sampling', |
| 18 | + pg_wait_sampling_sources, |
| 19 | +kwargs: contrib_mod_args, |
| 20 | +) |
| 21 | +contrib_targets+= pg_wait_sampling |
| 22 | + |
| 23 | +install_data( |
| 24 | +'pg_wait_sampling.control', |
| 25 | +'pg_wait_sampling--1.0--1.1.sql', |
| 26 | +'pg_wait_sampling--1.1.sql', |
| 27 | +kwargs: contrib_data_args, |
| 28 | +) |
| 29 | + |
| 30 | +tests+= { |
| 31 | +'name':'pg_wait_sampling', |
| 32 | +'sd':meson.current_source_dir(), |
| 33 | +'bd':meson.current_build_dir(), |
| 34 | +'regress': { |
| 35 | +'sql': [ |
| 36 | +'load', |
| 37 | +'queries', |
| 38 | + ], |
| 39 | +'regress_args': ['--temp-config',files('conf.add')], |
| 40 | + }, |
| 41 | +} |