aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2014-02-27 11:41:43 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2014-02-27 11:41:43 -0300
commit9b4bd35aa1f185b3ad5b2e3d51a524f5bb77f577 (patch)
treebe352b5458ed69501d6c6e8c00fb14892f8d8e09
parent9a57858f1103b89a5674f0d50c5fe1f756411df6 (diff)
downloadpostgresql-9b4bd35aa1f185b3ad5b2e3d51a524f5bb77f577.tar.gz
postgresql-9b4bd35aa1f185b3ad5b2e3d51a524f5bb77f577.zip
doc: bgw_main takes a Datum argument, not void *.
Per report from James Harper.
-rw-r--r--doc/src/sgml/bgworker.sgml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/bgworker.sgml b/doc/src/sgml/bgworker.sgml
index 7ffeca5321a..f66cf7f20e8 100644
--- a/doc/src/sgml/bgworker.sgml
+++ b/doc/src/sgml/bgworker.sgml
@@ -37,7 +37,7 @@
from its <function>_PG_init()</>.
The structure <structname>BackgroundWorker</structname> is defined thus:
<programlisting>
-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
<para>
<structfield>bgw_main</structfield> is a pointer to the function to run when
the process is started. This function must take a single argument of type
- <type>void *</> and return <type>void</>.
+ <type>Datum</> and return <type>void</>.
<structfield>bgw_main_arg</structfield> will be passed to it as its only
argument. Note that the global variable <literal>MyBgworkerEntry</literal>
points to a copy of the <structname>BackgroundWorker</structname> structure