The structure BackgroundWorker is defined thus:
-typedef void (*bgworker_main_type)(void *main_arg);
+typedef void (*bgworker_main_type)(Datum main_arg);
typedef struct BackgroundWorker
{
char bgw_name[BGW_MAXLEN];
bgw_main is a pointer to the function to run when
the process is started. This function must take a single argument of type
- void *> and return void>.
+ Datum> and return void>.
bgw_main_arg will be passed to it as its only
argument. Note that the global variable MyBgworkerEntry
points to a copy of the BackgroundWorker structure