• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

activity/H08-Nov-2021-2,0211,274

adt/H08-Nov-2021-183,527118,280

cache/H08-Nov-2021-23,64813,415

error/H08-Nov-2021-3,7082,152

fmgr/H08-Nov-2021-5,2063,466

hash/H08-Nov-2021-2,0491,069

init/H08-Nov-2021-3,1491,654

mb/H08-Nov-2021-189,262168,574

misc/H03-May-2022-22,13915,445

mmgr/H08-Nov-2021-10,6095,818

resowner/H08-Nov-2021-1,594901

sort/H08-Nov-2021-8,4864,612

time/H08-Nov-2021-2,7521,415

.gitignoreH A D08-Nov-202171 76

Gen_dummy_probes.plH A D08-Nov-20215.3 KiB260178

Gen_dummy_probes.pl.prologH A D08-Nov-2021548 200

Gen_dummy_probes.sedH A D08-Nov-20211.2 KiB2523

Gen_fmgrtab.plH A D08-Nov-20217.8 KiB297215

MakefileH A D08-Nov-20214 KiB12070

README.Gen_dummy_probesH A D08-Nov-20211.3 KiB2821

errcodes.hH A D08-Nov-202121.7 KiB354265

fmgroids.hH A D08-Nov-2021100.4 KiB3,2203,189

fmgrprotos.hH A D08-Nov-2021130.6 KiB2,7912,769

fmgrtab.cH A D08-Nov-2021294 KiB9,1489,122

generate-errcodes.plH A D08-Nov-2021921 4726

probes.dH A D08-Nov-20213.4 KiB9566

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