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

26 行
3.9KB

  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>SPI_freetuptable</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="spi-spi-freetuple.html" title="SPI_freetuple" /><link rel="next" href="spi-spi-freeplan.html" title="SPI_freeplan" /></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">SPI_freetuptable</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="spi-spi-freetuple.html" title="SPI_freetuple">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="spi-memory.html" title="46.3. Memory Management">Up</a></td><th width="60%" align="center">46.3. Memory Management</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="spi-spi-freeplan.html" title="SPI_freeplan">Next</a></td></tr></table><hr></hr></div><div class="refentry" id="SPI-SPI-FREETUPLETABLE"><div class="titlepage"></div><a id="id-1.8.12.10.13.1" class="indexterm"></a><div class="refnamediv"><h2><span class="refentrytitle">SPI_freetuptable</span></h2><p>SPI_freetuptable — free a row set created by <code class="function">SPI_execute</code> or a similar
  3. function</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
  4. void SPI_freetuptable(SPITupleTable * <em class="parameter"><code>tuptable</code></em>)
  5. </pre></div><div class="refsect1" id="id-1.8.12.10.13.5"><h2>Description</h2><p>
  6. <code class="function">SPI_freetuptable</code> frees a row set created by a
  7. prior SPI command execution function, such as
  8. <code class="function">SPI_execute</code>. Therefore, this function is often called
  9. with the global variable <code class="varname">SPI_tuptable</code> as
  10. argument.
  11. </p><p>
  12. This function is useful if an SPI-using C function needs to execute
  13. multiple commands and does not want to keep the results of earlier
  14. commands around until it ends. Note that any unfreed row sets will
  15. be freed anyway at <code class="function">SPI_finish</code>.
  16. Also, if a subtransaction is started and then aborted within execution
  17. of an SPI-using C function, SPI automatically frees any row sets created while
  18. the subtransaction was running.
  19. </p><p>
  20. Beginning in <span class="productname">PostgreSQL</span> 9.3,
  21. <code class="function">SPI_freetuptable</code> contains guard logic to protect
  22. against duplicate deletion requests for the same row set. In previous
  23. releases, duplicate deletions would lead to crashes.
  24. </p></div><div class="refsect1" id="id-1.8.12.10.13.6"><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="literal">SPITupleTable * <em class="parameter"><code>tuptable</code></em></code></span></dt><dd><p>
  25. pointer to row set to free, or NULL to do nothing
  26. </p></dd></dl></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="spi-spi-freetuple.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="spi-memory.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="spi-spi-freeplan.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SPI_freetuple </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> SPI_freeplan</td></tr></table></div></body></html>
上海开阖软件有限公司 沪ICP备12045867号-1