From: Alvaro Herrera Date: Thu, 27 Feb 2014 14:41:43 +0000 (-0300) Subject: doc: bgw_main takes a Datum argument, not void *. X-Git-Tag: REL9_3_4~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b4bd35aa1f185b3ad5b2e3d51a524f5bb77f577;p=postgresql doc: bgw_main takes a Datum argument, not void *. Per report from James Harper. --- diff --git a/doc/src/sgml/bgworker.sgml b/doc/src/sgml/bgworker.sgml index 7ffeca5321..f66cf7f20e 100644 --- a/doc/src/sgml/bgworker.sgml +++ b/doc/src/sgml/bgworker.sgml @@ -37,7 +37,7 @@ from its _PG_init(). 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]; @@ -94,7 +94,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