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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
| # Copyright (c) 2022-2026, PostgreSQL Global Development Group
|
| test_decoding_sources = files(
| 'test_decoding.c',
| )
|
| if host_system == 'windows'
| test_decoding_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
| '--NAME', 'test_decoding',
| '--FILEDESC', 'test_decoding - example of a logical decoding output plugin',])
| endif
|
| test_decoding = shared_module('test_decoding',
| test_decoding_sources,
| kwargs: contrib_mod_args,
| )
| contrib_targets += test_decoding
|
| test_decoding_isolation = [
| 'mxact',
| 'delayed_startup',
| 'ondisk_startup',
| 'catalog_change_snapshot',
| 'concurrent_ddl_dml',
| 'oldest_xmin',
| 'snapshot_transfer',
| 'subxact_without_top',
| 'concurrent_stream',
| 'twophase_snapshot',
| 'skip_snapshot_restore',
| 'invalidation_distribution',
| 'parallel_session_origin',
| 'tuplecid_nested',
| 'tuplecid_restart',
| ]
|
| # slot_creation_error terminates another backend, whose FATAL message can be
| # lost on Windows, making the test unstable there.
| # See https://postgr.es/m/088AB35D-0860-494A-A9CF-8B301543AA51@yandex-team.ru
| if host_system != 'windows'
| test_decoding_isolation += 'slot_creation_error'
| endif
|
| tests += {
| 'name': 'test_decoding',
| 'sd': meson.current_source_dir(),
| 'bd': meson.current_build_dir(),
| 'regress': {
| 'sql': [
| 'ddl',
| 'xact',
| 'rewrite',
| 'toast',
| 'permissions',
| 'decoding_in_xact',
| 'decoding_into_rel',
| 'binary',
| 'prepared',
| 'replorigin',
| 'time',
| 'messages',
| 'repack',
| 'spill',
| 'slot',
| 'truncate',
| 'stream',
| 'stats',
| 'twophase',
| 'twophase_stream',
| 'rowtypes_alter',
| ],
| 'regress_args': [
| '--temp-config', files('logical.conf'),
| ],
| # Disabled because these tests require "wal_level=logical", which
| # typical runningcheck users do not have (e.g. buildfarm clients).
| 'runningcheck': false,
| },
| 'isolation': {
| 'specs': test_decoding_isolation,
| 'regress_args': [
| '--temp-config', files('logical.conf'),
| ],
| # see above
| 'runningcheck': false,
| },
| 'tap': {
| 'tests': [
| 't/001_repl_stats.pl',
| ],
| },
| }
|
|