| 1 |
# Copyright (c) 2022-2025, PostgreSQL Global Development Group |
| 2 |
|
| 3 |
pg_walinspect_sources = files('pg_walinspect.c') |
| 4 |
|
| 5 |
if host_system == 'windows' |
| 6 |
pg_walinspect_sources += rc_lib_gen.process(win32ver_rc, extra_args: [ |
| 7 |
'--NAME', 'pg_walinspect', |
| 8 |
'--FILEDESC', 'pg_walinspect - functions to inspect contents of PostgreSQL Write-Ahead Log',]) |
| 9 |
endif |
| 10 |
|
| 11 |
pg_walinspect = shared_module('pg_walinspect', |
| 12 |
pg_walinspect_sources, |
| 13 |
kwargs: contrib_mod_args + { |
| 14 |
'dependencies': contrib_mod_args['dependencies'], |
| 15 |
}, |
| 16 |
) |
| 17 |
contrib_targets += pg_walinspect |
| 18 |
|
| 19 |
install_data( |
| 20 |
'pg_walinspect.control', |
| 21 |
'pg_walinspect--1.0.sql', |
| 22 |
'pg_walinspect--1.0--1.1.sql', |
| 23 |
kwargs: contrib_data_args, |
| 24 |
) |
| 25 |
|
| 26 |
tests += { |
| 27 |
'name': 'pg_walinspect', |
| 28 |
'sd': meson.current_source_dir(), |
| 29 |
'bd': meson.current_build_dir(), |
| 30 |
'regress': { |
| 31 |
'sql': [ |
| 32 |
'pg_walinspect', |
| 33 |
'oldextversions', |
| 34 |
], |
| 35 |
# Disabled because these tests require "wal_level=replica", which |
| 36 |
# some runningcheck users do not have (e.g. buildfarm clients). |
| 37 |
'regress_args': ['--temp-config', files('walinspect.conf')], |
| 38 |
'runningcheck': false, |
| 39 |
}, |
| 40 |
} |