| 1 |
# Copyright (c) 2022-2025, PostgreSQL Global Development Group |
| 2 |
|
| 3 |
pg_freespacemap_sources = files( |
| 4 |
'pg_freespacemap.c', |
| 5 |
) |
| 6 |
|
| 7 |
if host_system == 'windows' |
| 8 |
pg_freespacemap_sources += rc_lib_gen.process(win32ver_rc, extra_args: [ |
| 9 |
'--NAME', 'pg_freespacemap', |
| 10 |
'--FILEDESC', 'pg_freespacemap - monitoring of free space map',]) |
| 11 |
endif |
| 12 |
|
| 13 |
pg_freespacemap = shared_module('pg_freespacemap', |
| 14 |
pg_freespacemap_sources, |
| 15 |
kwargs: contrib_mod_args, |
| 16 |
) |
| 17 |
contrib_targets += pg_freespacemap |
| 18 |
|
| 19 |
install_data( |
| 20 |
'pg_freespacemap--1.0--1.1.sql', |
| 21 |
'pg_freespacemap--1.1--1.2.sql', |
| 22 |
'pg_freespacemap--1.1.sql', |
| 23 |
'pg_freespacemap--1.2--1.3.sql', |
| 24 |
'pg_freespacemap.control', |
| 25 |
kwargs: contrib_data_args, |
| 26 |
) |
| 27 |
|
| 28 |
tests += { |
| 29 |
'name': 'pg_freespacemap', |
| 30 |
'sd': meson.current_source_dir(), |
| 31 |
'bd': meson.current_build_dir(), |
| 32 |
'regress': { |
| 33 |
'sql': [ |
| 34 |
'pg_freespacemap', |
| 35 |
], |
| 36 |
'regress_args': [ |
| 37 |
'--temp-config', files('pg_freespacemap.conf') |
| 38 |
], |
| 39 |
# Disabled because these tests require "autovacuum=off", which |
| 40 |
# typical runningcheck users do not have (e.g. buildfarm clients). |
| 41 |
'runningcheck': false, |
| 42 |
}, |
| 43 |
} |