diff options
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/sgml/gist.sgml | 4 | ||||
| -rw-r--r-- | doc/src/sgml/xfunc.sgml | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/doc/src/sgml/gist.sgml b/doc/src/sgml/gist.sgml index 5cbea8c3d55..1871f742721 100644 --- a/doc/src/sgml/gist.sgml +++ b/doc/src/sgml/gist.sgml @@ -291,7 +291,7 @@ CREATE INDEX ON my_table USING GIST (my_inet_column inet_ops); speed up building a <acronym>GiST</acronym> index. The optional twelfth method <function>stratnum</function> is used to translate compare types (from - <filename>src/include/nodes/primnodes.h</filename>) into strategy numbers + <filename>src/include/access/cmptype.h</filename>) into strategy numbers used by the operator class. This lets the core code look up operators for temporal constraint indexes. </para> @@ -1174,7 +1174,7 @@ my_sortsupport(PG_FUNCTION_ARGS) <listitem> <para> Given a <literal>CompareType</literal> value from - <filename>src/include/nodes/primnodes.h</filename>, returns a strategy + <filename>src/include/access/cmptype.h</filename>, returns a strategy number used by this operator class for matching functionality. The function should return <literal>InvalidStrategy</literal> if the operator class has no matching strategy. diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml index 2de3309267d..e9288bd6b5e 100644 --- a/doc/src/sgml/xfunc.sgml +++ b/doc/src/sgml/xfunc.sgml @@ -3696,15 +3696,18 @@ LWLockRelease(AddinShmemInitLock); use the shared memory should obtain a pointer to it by calling: <programlisting> void *GetNamedDSMSegment(const char *name, size_t size, - void (*init_callback) (void *ptr), - bool *found) + void (*init_callback) (void *ptr, void *arg), + bool *found, void *arg) </programlisting> If a dynamic shared memory segment with the given name does not yet exist, this function will allocate it and initialize it with the provided <function>init_callback</function> callback function. If the segment has already been allocated and initialized by another backend, this function simply attaches the existing dynamic shared memory segment to the current - backend. + backend. In the former case, <function>GetNamedDSMSegment</function> + passes the <literal>void *arg</literal> argument to the + <function>init_callback</function>. This is particularly useful for + reusing an initialization callback function for multiple DSM segments. </para> <para> |
