1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| # Copyright (c) 2022-2026, PostgreSQL Global Development Group
|
| pg_waldump_sources = files(
| 'archive_waldump.c',
| 'compat.c',
| 'pg_waldump.c',
| 'rmgrdesc.c',
| )
|
| pg_waldump_sources += rmgr_desc_sources
| pg_waldump_sources += xlogreader_sources
| pg_waldump_sources += files('../../backend/access/transam/xlogstats.c')
|
| if host_system == 'windows'
| pg_waldump_sources += rc_bin_gen.process(win32ver_rc, extra_args: [
| '--NAME', 'pg_waldump',
| '--FILEDESC', 'pg_waldump - decode and display WA'])
| endif
|
| pg_waldump = executable('pg_waldump',
| pg_waldump_sources,
| dependencies: [frontend_code, libpq, lz4, zstd],
| c_args: ['-DFRONTEND'], # needed for xlogreader et al
| kwargs: default_bin_args,
| )
| bin_targets += pg_waldump
|
| tests += {
| 'name': 'pg_waldump',
| 'sd': meson.current_source_dir(),
| 'bd': meson.current_build_dir(),
| 'tap': {
| 'env': {'TAR': tar.found() ? tar.full_path() : ''},
| 'tests': [
| 't/001_basic.pl',
| 't/002_save_fullpage.pl',
| ],
| },
| }
|
| subdir('po', if_found: libintl)
|
|