From 4333eee82d399df8f724faa331827dcfae1fdf28 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Thu, 27 Feb 2014 11:41:43 -0300 Subject: [PATCH] doc: bgw_main takes a Datum argument, not void *. Per report from James Harper. --- doc/src/sgml/bgworker.sgml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/bgworker.sgml b/doc/src/sgml/bgworker.sgml index 6996d73186..fd32d6cb0c 100644 --- a/doc/src/sgml/bgworker.sgml +++ b/doc/src/sgml/bgworker.sgml @@ -47,7 +47,7 @@ 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]; @@ -107,7 +107,7 @@ typedef struct BackgroundWorker 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