At 2024-01-12 11:21:52 -0600, nathandbossart@gmail.com wrote:
>
> From: Nathan Bossart <nathan@postgresql.org>
> Date: Thu, 11 Jan 2024 21:55:25 -0600
> Subject: [PATCH v6 1/3] reorganize shared memory and lwlocks documentation
>
> ---
> doc/src/sgml/xfunc.sgml | 182 +++++++++++++++++++++++++---------------
> 1 file changed, 114 insertions(+), 68 deletions(-)
>
> diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml
> index 89116ae74c..0ba52b41d4 100644
> --- a/doc/src/sgml/xfunc.sgml
> +++ b/doc/src/sgml/xfunc.sgml
> @@ -3397,90 +3397,136 @@ CREATE FUNCTION make_array(anyelement) RETURNS anyarray
> </sect2>
>
> […]
> - from your <literal>shmem_request_hook</literal>.
> - </para>
> - <para>
> - LWLocks are reserved by calling:
> + Each backend sould obtain a pointer to the reserved shared memory by
sould → should
> + Add-ins can reserve LWLocks on server startup. Like with shared memory,
(Would "As with shared memory" read better? Maybe, but then again maybe
it should be left alone because you also write "Unlike with" elsewhere.)
-- Abhijit