summaryrefslogtreecommitdiff
path: root/doc/src/sgml/plperl.sgml
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2025-11-08 09:49:43 -0500
committerBruce Momjian <bruce@momjian.us>2025-11-08 09:49:43 -0500
commit980a855c5c2e21e964a739694e24004f72e03fdf (patch)
tree6f431d946445c84073afff474c26dbf0e0ed28d3 /doc/src/sgml/plperl.sgml
parente8bfad4ca842733b957c01e732ec009778f952cd (diff)
doc: consistently use "structname" and "structfield" markup
Previously "literal" and "classname" were used, inconsistently, for SQL table and column names. Reported-by: Peter Smith Author: Peter Smith Discussion: https://postgr.es/m/CAHut+Pvtf24r+bdPgBind84dBLPvgNL7aB+=HxAUupdPuo2gRg@mail.gmail.com Backpatch-through: master
Diffstat (limited to 'doc/src/sgml/plperl.sgml')
-rw-r--r--doc/src/sgml/plperl.sgml8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/plperl.sgml b/doc/src/sgml/plperl.sgml
index 011b9792325..6f018645f11 100644
--- a/doc/src/sgml/plperl.sgml
+++ b/doc/src/sgml/plperl.sgml
@@ -468,8 +468,8 @@ optional maximum number of rows:
$rv = spi_exec_query('SELECT * FROM my_table', 5);
</programlisting>
This returns up to 5 rows from the table
- <literal>my_table</literal>. If <literal>my_table</literal>
- has a column <literal>my_column</literal>, you can get that
+ <structname>my_table</structname>. If <structname>my_table</structname>
+ has a column <structfield>my_column</structfield>, you can get that
value from row <literal>$i</literal> of the result like this:
<programlisting>
$foo = $rv-&gt;{rows}[$i]-&gt;{my_column};
@@ -1199,7 +1199,7 @@ $$ LANGUAGE plperl;
<term><literal>$_TD-&gt;{new}{foo}</literal></term>
<listitem>
<para>
- <literal>NEW</literal> value of column <literal>foo</literal>
+ <literal>NEW</literal> value of column <structfield>foo</structfield>
</para>
</listitem>
</varlistentry>
@@ -1208,7 +1208,7 @@ $$ LANGUAGE plperl;
<term><literal>$_TD-&gt;{old}{foo}</literal></term>
<listitem>
<para>
- <literal>OLD</literal> value of column <literal>foo</literal>
+ <literal>OLD</literal> value of column <structfield>foo</structfield>
</para>
</listitem>
</varlistentry>