gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
4.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>19.14. Error Handling</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="runtime-config-compatible.html" title="19.13. Version and Platform Compatibility" /><link rel="next" href="runtime-config-preset.html" title="19.15. Preset Options" /></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">19.14. Error Handling</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="runtime-config-compatible.html" title="19.13. Version and Platform Compatibility">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="runtime-config.html" title="Chapter 19. Server Configuration">Up</a></td><th width="60%" align="center">Chapter 19. Server Configuration</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="runtime-config-preset.html" title="19.15. Preset Options">Next</a></td></tr></table><hr></hr></div><div class="sect1" id="RUNTIME-CONFIG-ERROR-HANDLING"><div class="titlepage"><div><div><h2 class="title" style="clear: both">19.14. Error Handling</h2></div></div></div><div class="variablelist"><dl class="variablelist"><dt id="GUC-EXIT-ON-ERROR"><span class="term"><code class="varname">exit_on_error</code> (<code class="type">boolean</code>)
  3. <a id="id-1.6.6.17.2.1.1.3" class="indexterm"></a>
  4. </span></dt><dd><p>
  5. If on, any error will terminate the current session. By default,
  6. this is set to off, so that only FATAL errors will terminate the
  7. session.
  8. </p></dd><dt id="GUC-RESTART-AFTER-CRASH"><span class="term"><code class="varname">restart_after_crash</code> (<code class="type">boolean</code>)
  9. <a id="id-1.6.6.17.2.2.1.3" class="indexterm"></a>
  10. </span></dt><dd><p>
  11. When set to on, which is the default, <span class="productname">PostgreSQL</span>
  12. will automatically reinitialize after a backend crash. Leaving this
  13. value set to on is normally the best way to maximize the availability
  14. of the database. However, in some circumstances, such as when
  15. <span class="productname">PostgreSQL</span> is being invoked by clusterware, it may be
  16. useful to disable the restart so that the clusterware can gain
  17. control and take any actions it deems appropriate.
  18. </p></dd><dt id="GUC-DATA-SYNC-RETRY"><span class="term"><code class="varname">data_sync_retry</code> (<code class="type">boolean</code>)
  19. <a id="id-1.6.6.17.2.3.1.3" class="indexterm"></a>
  20. </span></dt><dd><p>
  21. When set to off, which is the default, <span class="productname">PostgreSQL</span>
  22. will raise a PANIC-level error on failure to flush modified data files
  23. to the file system. This causes the database server to crash. This
  24. parameter can only be set at server start.
  25. </p><p>
  26. On some operating systems, the status of data in the kernel's page
  27. cache is unknown after a write-back failure. In some cases it might
  28. have been entirely forgotten, making it unsafe to retry; the second
  29. attempt may be reported as successful, when in fact the data has been
  30. lost. In these circumstances, the only way to avoid data loss is to
  31. recover from the WAL after any failure is reported, preferably
  32. after investigating the root cause of the failure and replacing any
  33. faulty hardware.
  34. </p><p>
  35. If set to on, <span class="productname">PostgreSQL</span> will instead
  36. report an error but continue to run so that the data flushing
  37. operation can be retried in a later checkpoint. Only set it to on
  38. after investigating the operating system's treatment of buffered data
  39. in case of write-back failure.
  40. </p></dd></dl></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="runtime-config-compatible.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="runtime-config.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="runtime-config-preset.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">19.13. Version and Platform Compatibility </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 19.15. Preset Options</td></tr></table></div></body></html>
上海开阖软件有限公司 沪ICP备12045867号-1