gooderp18绿色标准版
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

18 行
4.0KB

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Chapter 38. Triggers</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="prev" href="extend-pgxs.html" title="37.18. Extension Building Infrastructure" /><link rel="next" href="trigger-definition.html" title="38.1. Overview of Trigger Behavior" /></head><body><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">Chapter 38. Triggers</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="extend-pgxs.html" title="37.18. Extension Building Infrastructure">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="server-programming.html" title="Part V. Server Programming">Up</a></td><th width="60%" align="center">Part V. Server Programming</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 12.4 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="trigger-definition.html" title="38.1. Overview of Trigger Behavior">Next</a></td></tr></table><hr></hr></div><div class="chapter" id="TRIGGERS"><div class="titlepage"><div><div><h2 class="title">Chapter 38. Triggers</h2></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="sect1"><a href="trigger-definition.html">38.1. Overview of Trigger Behavior</a></span></dt><dt><span class="sect1"><a href="trigger-datachanges.html">38.2. Visibility of Data Changes</a></span></dt><dt><span class="sect1"><a href="trigger-interface.html">38.3. Writing Trigger Functions in C</a></span></dt><dt><span class="sect1"><a href="trigger-example.html">38.4. A Complete Trigger Example</a></span></dt></dl></div><a id="id-1.8.4.2" class="indexterm"></a><p>
  3. This chapter provides general information about writing trigger functions.
  4. Trigger functions can be written in most of the available procedural
  5. languages, including
  6. <span class="application">PL/pgSQL</span> (<a class="xref" href="plpgsql.html" title="Chapter 42. PL/pgSQL - SQL Procedural Language">Chapter 42</a>),
  7. <span class="application">PL/Tcl</span> (<a class="xref" href="pltcl.html" title="Chapter 43. PL/Tcl - Tcl Procedural Language">Chapter 43</a>),
  8. <span class="application">PL/Perl</span> (<a class="xref" href="plperl.html" title="Chapter 44. PL/Perl - Perl Procedural Language">Chapter 44</a>), and
  9. <span class="application">PL/Python</span> (<a class="xref" href="plpython.html" title="Chapter 45. PL/Python - Python Procedural Language">Chapter 45</a>).
  10. After reading this chapter, you should consult the chapter for
  11. your favorite procedural language to find out the language-specific
  12. details of writing a trigger in it.
  13. </p><p>
  14. It is also possible to write a trigger function in C, although
  15. most people find it easier to use one of the procedural languages.
  16. It is not currently possible to write a trigger function in the
  17. plain SQL function language.
  18. </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="extend-pgxs.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="server-programming.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="trigger-definition.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">37.18. Extension Building Infrastructure </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 38.1. Overview of Trigger Behavior</td></tr></table></div></body></html>
上海开阖软件有限公司 沪ICP备12045867号-1