diff options
Diffstat (limited to 'doc/src/sgml/archive-modules.sgml')
-rw-r--r-- | doc/src/sgml/archive-modules.sgml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/archive-modules.sgml b/doc/src/sgml/archive-modules.sgml index 7cf44e82e23..7064307d9e6 100644 --- a/doc/src/sgml/archive-modules.sgml +++ b/doc/src/sgml/archive-modules.sgml @@ -50,7 +50,7 @@ <function>_PG_archive_module_init</function>. The result of the function must be a pointer to a struct of type <structname>ArchiveModuleCallbacks</structname>, which contains everything - that the core code needs to know how to make use of the archive module. The + that the core code needs to know to make use of the archive module. The return value needs to be of server lifetime, which is typically achieved by defining it as a <literal>static const</literal> variable in global scope. @@ -82,7 +82,7 @@ typedef const ArchiveModuleCallbacks *(*ArchiveModuleInit) (void); <para> The <function>startup_cb</function> callback is called shortly after the module is loaded. This callback can be used to perform any additional - initialization required. If the archive module has a state, it can use + initialization required. If the archive module has any state, it can use <structfield>state->private_data</structfield> to store it. <programlisting> @@ -143,7 +143,7 @@ typedef bool (*ArchiveFileCB) (ArchiveModuleState *state, const char *file, cons process exits (e.g., after an error) or the value of <xref linkend="guc-archive-library"/> changes. If no <function>shutdown_cb</function> is defined, no special action is taken in - these situations. If the archive module has a state, this callback should + these situations. If the archive module has any state, this callback should free it to avoid leaks. <programlisting> |