docs: clarify plpython SD and GD dictionary behavior

Reported-by: Adam Bielański

Discussion: https://postgr.es/m/153484305538.1370.7605856225879294548@wrigleys.postgresql.org

Backpatch-through: 9.3
This commit is contained in:
Bruce Momjian 2018-08-25 11:52:30 -04:00
parent 8ecdefc261
commit a6ca9c2a1b
1 changed files with 2 additions and 2 deletions

View File

@ -768,9 +768,9 @@ SELECT * FROM multiout_simple_setof(3);
<title>Sharing Data</title>
<para>
The global dictionary <varname>SD</varname> is available to store
data between function calls. This variable is private static data.
private data between repeated calls to the same function.
The global dictionary <varname>GD</varname> is public data,
available to all Python functions within a session. Use with
that is available to all Python functions within a session; use with
care.<indexterm><primary>global data</primary>
<secondary>in PL/Python</secondary></indexterm>
</para>