|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| activity/ | H | 08-Nov-2021 | - | 2,021 | 1,274 |
| adt/ | H | 08-Nov-2021 | - | 183,527 | 118,280 |
| cache/ | H | 08-Nov-2021 | - | 23,648 | 13,415 |
| error/ | H | 08-Nov-2021 | - | 3,708 | 2,152 |
| fmgr/ | H | 08-Nov-2021 | - | 5,206 | 3,466 |
| hash/ | H | 08-Nov-2021 | - | 2,049 | 1,069 |
| init/ | H | 08-Nov-2021 | - | 3,149 | 1,654 |
| mb/ | H | 08-Nov-2021 | - | 189,262 | 168,574 |
| misc/ | H | 03-May-2022 | - | 22,139 | 15,445 |
| mmgr/ | H | 08-Nov-2021 | - | 10,609 | 5,818 |
| resowner/ | H | 08-Nov-2021 | - | 1,594 | 901 |
| sort/ | H | 08-Nov-2021 | - | 8,486 | 4,612 |
| time/ | H | 08-Nov-2021 | - | 2,752 | 1,415 |
| .gitignore | H A D | 08-Nov-2021 | 71 | 7 | 6 |
| Gen_dummy_probes.pl | H A D | 08-Nov-2021 | 5.3 KiB | 260 | 178 |
| Gen_dummy_probes.pl.prolog | H A D | 08-Nov-2021 | 548 | 20 | 0 |
| Gen_dummy_probes.sed | H A D | 08-Nov-2021 | 1.2 KiB | 25 | 23 |
| Gen_fmgrtab.pl | H A D | 08-Nov-2021 | 7.8 KiB | 297 | 215 |
| Makefile | H A D | 08-Nov-2021 | 4 KiB | 120 | 70 |
| README.Gen_dummy_probes | H A D | 08-Nov-2021 | 1.3 KiB | 28 | 21 |
| errcodes.h | H A D | 08-Nov-2021 | 21.7 KiB | 354 | 265 |
| fmgroids.h | H A D | 08-Nov-2021 | 100.4 KiB | 3,220 | 3,189 |
| fmgrprotos.h | H A D | 08-Nov-2021 | 130.6 KiB | 2,791 | 2,769 |
| fmgrtab.c | H A D | 08-Nov-2021 | 294 KiB | 9,148 | 9,122 |
| generate-errcodes.pl | H A D | 08-Nov-2021 | 921 | 47 | 26 |
| probes.d | H A D | 08-Nov-2021 | 3.4 KiB | 95 | 66 |
README.Gen_dummy_probes
1# Generating dummy probes
2
3If Postgres isn't configured with dtrace enabled, we need to generate
4dummy probes for the entries in probes.d, that do nothing.
5
6This is accomplished in Unix via the sed script `Gen_dummy_probes.sed`. We
7used to use this in MSVC builds using the perl utility `psed`, which mimicked
8sed. However, that utility disappeared from Windows perl distributions and so
9we converted the sed script to a perl script to be used in MSVC builds.
10
11We still keep the sed script as the authoritative source for generating
12these dummy probes because except on Windows perl is not a hard requirement
13when building from a tarball.
14
15So, if you need to change the way dummy probes are generated, first change
16the sed script, and when it's working generate the perl script. This can
17be accomplished by using the perl utility s2p.
18
19s2p is no longer part of the perl core, so it might not be on your system,
20but it is available on CPAN and also in many package systems. e.g.
21on Fedora it can be installed using `cpan App::s2p` or
22`dnf install perl-App-s2p`.
23
24The Makefile contains a recipe for regenerating Gen_dummy_probes.pl, so all
25you need to do is once you have s2p installed is `make Gen_dummy_probes.pl`
26Note that in a VPATH build this will generate the file in the vpath tree,
27not the source tree.
28