|
| 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 | +rum_sources=files( |
| 7 | +'src/btree_rum.c', |
| 8 | +'src/rum_arr_utils.c', |
| 9 | +'src/rum_ts_utils.c', |
| 10 | +'src/rumbtree.c', |
| 11 | +'src/rumbulk.c', |
| 12 | +'src/rumdatapage.c', |
| 13 | +'src/rumentrypage.c', |
| 14 | +'src/rumget.c', |
| 15 | +'src/ruminsert.c', |
| 16 | +'src/rumscan.c', |
| 17 | +'src/rumsort.c', |
| 18 | +'src/rumtsquery.c', |
| 19 | +'src/rumutil.c', |
| 20 | +'src/rumvacuum.c', |
| 21 | +'src/rumvalidate.c', |
| 22 | +) |
| 23 | + |
| 24 | +if host_system=='windows' |
| 25 | + rum_sources+= rc_lib_gen.process(win32ver_rc,extra_args: [ |
| 26 | +'--NAME','rum', |
| 27 | +'--FILEDESC','rum - provides access method to work with the RUM indexes.',]) |
| 28 | +endif |
| 29 | + |
| 30 | +rum=shared_module('rum', |
| 31 | + rum_sources, |
| 32 | +kwargs: contrib_mod_args, |
| 33 | +) |
| 34 | +contrib_targets+= rum |
| 35 | + |
| 36 | +install_data( |
| 37 | +'rum.control', |
| 38 | +'rum--1.0--1.1.sql', |
| 39 | +'rum--1.0.sql', |
| 40 | +'rum--1.1--1.2.sql', |
| 41 | +'rum--1.1.sql', |
| 42 | +'rum--1.2--1.3.sql', |
| 43 | +'rum--1.2.sql', |
| 44 | +'rum--1.3.sql', |
| 45 | +kwargs: contrib_data_args, |
| 46 | +) |
| 47 | + |
| 48 | +tests+= { |
| 49 | +'name':'rum', |
| 50 | +'sd':meson.current_source_dir(), |
| 51 | +'bd':meson.current_build_dir(), |
| 52 | +'regress': { |
| 53 | +'sql': [ |
| 54 | +'security', |
| 55 | +'rum', |
| 56 | +'rum_validate', |
| 57 | +'rum_hash', |
| 58 | +'ruminv', |
| 59 | +'timestamp', |
| 60 | +'orderby', |
| 61 | +'orderby_hash', |
| 62 | +'altorder', |
| 63 | +'altorder_hash', |
| 64 | +'limits', |
| 65 | +'int2', |
| 66 | +'int4', |
| 67 | +'int8', |
| 68 | +'float4', |
| 69 | +'float8', |
| 70 | +'money', |
| 71 | +'oid', |
| 72 | +'time', |
| 73 | +'timetz', |
| 74 | +'date', |
| 75 | +'interval', |
| 76 | +'macaddr', |
| 77 | +'inet', |
| 78 | +'cidr', |
| 79 | +'text', |
| 80 | +'varchar', |
| 81 | +'char', |
| 82 | +'bytea', |
| 83 | +'bit', |
| 84 | +'varbit', |
| 85 | +'numeric', |
| 86 | +'rum_weight', |
| 87 | +'expr', |
| 88 | +'array', |
| 89 | + ], |
| 90 | + }, |
| 91 | +'tap': { |
| 92 | +'tests': [ |
| 93 | +'t/001_wal.pl', |
| 94 | + ], |
| 95 | + }, |
| 96 | +} |