Add missing PGDLLEXPORT markings in contrib/pg_prewarm.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Jul 2022 16:00:10 +0000 (12:00 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Jul 2022 16:00:10 +0000 (12:00 -0400)
commit03361a368e7bf909283cc7721af004317fdabd3d
treeea570b32477f0c085790100d2232363b68db8fcc
parenta2e97cb2b6fb64c3ca3198f5c5f31190bc14c703
Add missing PGDLLEXPORT markings in contrib/pg_prewarm.

After commit 089480c07, it's necessary for background worker entry
points to be marked PGDLLEXPORT, else they aren't findable by
LookupBackgroundWorkerFunction().  Since pg_prewarm lacks any
regression tests, it's not surprising its worker entry points were
overlooked.  (A quick search turned up no other such oversights.)

I added some documentation pointing out the need for this, too.

Robins Tharakan and Tom Lane

CAEP4nAzndnQv3-1QKb=D-hLoK3Rko12HHMFHHtdj2GQAUXO3gw@mail.gmail.com
contrib/pg_prewarm/autoprewarm.c
doc/src/sgml/bgworker.sgml