gooderp18绿色标准版
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

248 líneas
19KB

  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>5. Bug Reporting Guidelines</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="resources.html" title="4. Further Information" /><link rel="next" href="tutorial.html" title="Part I. Tutorial" /></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">5. Bug Reporting Guidelines</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="resources.html" title="4. Further Information">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="preface.html" title="Preface">Up</a></td><th width="60%" align="center">Preface</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="tutorial.html" title="Part I. Tutorial">Next</a></td></tr></table><hr></hr></div><div class="sect1" id="BUG-REPORTING"><div class="titlepage"><div><div><h2 class="title" style="clear: both">5. Bug Reporting Guidelines</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="sect2"><a href="bug-reporting.html#id-1.3.8.5">5.1. Identifying Bugs</a></span></dt><dt><span class="sect2"><a href="bug-reporting.html#id-1.3.8.6">5.2. What to Report</a></span></dt><dt><span class="sect2"><a href="bug-reporting.html#id-1.3.8.7">5.3. Where to Report Bugs</a></span></dt></dl></div><p>
  3. When you find a bug in <span class="productname">PostgreSQL</span> we want to
  4. hear about it. Your bug reports play an important part in making
  5. <span class="productname">PostgreSQL</span> more reliable because even the utmost
  6. care cannot guarantee that every part of
  7. <span class="productname">PostgreSQL</span>
  8. will work on every platform under every circumstance.
  9. </p><p>
  10. The following suggestions are intended to assist you in forming bug reports
  11. that can be handled in an effective fashion. No one is required to follow
  12. them but doing so tends to be to everyone's advantage.
  13. </p><p>
  14. We cannot promise to fix every bug right away. If the bug is obvious, critical,
  15. or affects a lot of users, chances are good that someone will look into it. It
  16. could also happen that we tell you to update to a newer version to see if the
  17. bug happens there. Or we might decide that the bug
  18. cannot be fixed before some major rewrite we might be planning is done. Or
  19. perhaps it is simply too hard and there are more important things on the agenda.
  20. If you need help immediately, consider obtaining a commercial support contract.
  21. </p><div class="sect2" id="id-1.3.8.5"><div class="titlepage"><div><div><h3 class="title">5.1. Identifying Bugs</h3></div></div></div><p>
  22. Before you report a bug, please read and re-read the
  23. documentation to verify that you can really do whatever it is you are
  24. trying. If it is not clear from the documentation whether you can do
  25. something or not, please report that too; it is a bug in the documentation.
  26. If it turns out that a program does something different from what the
  27. documentation says, that is a bug. That might include, but is not limited to,
  28. the following circumstances:
  29. </p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>
  30. A program terminates with a fatal signal or an operating system
  31. error message that would point to a problem in the program. (A
  32. counterexample might be a <span class="quote">“<span class="quote">disk full</span>”</span> message,
  33. since you have to fix that yourself.)
  34. </p></li><li class="listitem"><p>
  35. A program produces the wrong output for any given input.
  36. </p></li><li class="listitem"><p>
  37. A program refuses to accept valid input (as defined in the documentation).
  38. </p></li><li class="listitem"><p>
  39. A program accepts invalid input without a notice or error message.
  40. But keep in mind that your idea of invalid input might be our idea of
  41. an extension or compatibility with traditional practice.
  42. </p></li><li class="listitem"><p>
  43. <span class="productname">PostgreSQL</span> fails to compile, build, or
  44. install according to the instructions on supported platforms.
  45. </p></li></ul></div><p>
  46. Here <span class="quote">“<span class="quote">program</span>”</span> refers to any executable, not only the backend process.
  47. </p><p>
  48. Being slow or resource-hogging is not necessarily a bug. Read the
  49. documentation or ask on one of the mailing lists for help in tuning your
  50. applications. Failing to comply to the <acronym class="acronym">SQL</acronym> standard is
  51. not necessarily a bug either, unless compliance for the
  52. specific feature is explicitly claimed.
  53. </p><p>
  54. Before you continue, check on the TODO list and in the FAQ to see if your bug is
  55. already known. If you cannot decode the information on the TODO list, report your
  56. problem. The least we can do is make the TODO list clearer.
  57. </p></div><div class="sect2" id="id-1.3.8.6"><div class="titlepage"><div><div><h3 class="title">5.2. What to Report</h3></div></div></div><p>
  58. The most important thing to remember about bug reporting is to state all
  59. the facts and only facts. Do not speculate what you think went wrong, what
  60. <span class="quote">“<span class="quote">it seemed to do</span>”</span>, or which part of the program has a fault.
  61. If you are not familiar with the implementation you would probably guess
  62. wrong and not help us a bit. And even if you are, educated explanations are
  63. a great supplement to but no substitute for facts. If we are going to fix
  64. the bug we still have to see it happen for ourselves first.
  65. Reporting the bare facts
  66. is relatively straightforward (you can probably copy and paste them from the
  67. screen) but all too often important details are left out because someone
  68. thought it does not matter or the report would be understood
  69. anyway.
  70. </p><p>
  71. The following items should be contained in every bug report:
  72. </p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>
  73. The exact sequence of steps <span class="emphasis"><em>from program
  74. start-up</em></span> necessary to reproduce the problem. This
  75. should be self-contained; it is not enough to send in a bare
  76. <code class="command">SELECT</code> statement without the preceding
  77. <code class="command">CREATE TABLE</code> and <code class="command">INSERT</code>
  78. statements, if the output should depend on the data in the
  79. tables. We do not have the time to reverse-engineer your
  80. database schema, and if we are supposed to make up our own data
  81. we would probably miss the problem.
  82. </p><p>
  83. The best format for a test case for SQL-related problems is a
  84. file that can be run through the <span class="application">psql</span>
  85. frontend that shows the problem. (Be sure to not have anything
  86. in your <code class="filename">~/.psqlrc</code> start-up file.) An easy
  87. way to create this file is to use <span class="application">pg_dump</span>
  88. to dump out the table declarations and data needed to set the
  89. scene, then add the problem query. You are encouraged to
  90. minimize the size of your example, but this is not absolutely
  91. necessary. If the bug is reproducible, we will find it either
  92. way.
  93. </p><p>
  94. If your application uses some other client interface, such as <span class="application">PHP</span>, then
  95. please try to isolate the offending queries. We will probably not set up a
  96. web server to reproduce your problem. In any case remember to provide
  97. the exact input files; do not guess that the problem happens for
  98. <span class="quote">“<span class="quote">large files</span>”</span> or <span class="quote">“<span class="quote">midsize databases</span>”</span>, etc. since this
  99. information is too inexact to be of use.
  100. </p></li><li class="listitem"><p>
  101. The output you got. Please do not say that it <span class="quote">“<span class="quote">didn't work</span>”</span> or
  102. <span class="quote">“<span class="quote">crashed</span>”</span>. If there is an error message,
  103. show it, even if you do not understand it. If the program terminates with
  104. an operating system error, say which. If nothing at all happens, say so.
  105. Even if the result of your test case is a program crash or otherwise obvious
  106. it might not happen on our platform. The easiest thing is to copy the output
  107. from the terminal, if possible.
  108. </p><div class="note"><h3 class="title">Note</h3><p>
  109. If you are reporting an error message, please obtain the most verbose
  110. form of the message. In <span class="application">psql</span>, say <code class="literal">\set
  111. VERBOSITY verbose</code> beforehand. If you are extracting the message
  112. from the server log, set the run-time parameter
  113. <a class="xref" href="runtime-config-logging.html#GUC-LOG-ERROR-VERBOSITY">log_error_verbosity</a> to <code class="literal">verbose</code> so that all
  114. details are logged.
  115. </p></div><div class="note"><h3 class="title">Note</h3><p>
  116. In case of fatal errors, the error message reported by the client might
  117. not contain all the information available. Please also look at the
  118. log output of the database server. If you do not keep your server's log
  119. output, this would be a good time to start doing so.
  120. </p></div></li><li class="listitem"><p>
  121. The output you expected is very important to state. If you just write
  122. <span class="quote">“<span class="quote">This command gives me that output.</span>”</span> or <span class="quote">“<span class="quote">This is not
  123. what I expected.</span>”</span>, we might run it ourselves, scan the output, and
  124. think it looks OK and is exactly what we expected. We should not have to
  125. spend the time to decode the exact semantics behind your commands.
  126. Especially refrain from merely saying that <span class="quote">“<span class="quote">This is not what SQL says/Oracle
  127. does.</span>”</span> Digging out the correct behavior from <acronym class="acronym">SQL</acronym>
  128. is not a fun undertaking, nor do we all know how all the other relational
  129. databases out there behave. (If your problem is a program crash, you can
  130. obviously omit this item.)
  131. </p></li><li class="listitem"><p>
  132. Any command line options and other start-up options, including
  133. any relevant environment variables or configuration files that
  134. you changed from the default. Again, please provide exact
  135. information. If you are using a prepackaged distribution that
  136. starts the database server at boot time, you should try to find
  137. out how that is done.
  138. </p></li><li class="listitem"><p>
  139. Anything you did at all differently from the installation
  140. instructions.
  141. </p></li><li class="listitem"><p>
  142. The <span class="productname">PostgreSQL</span> version. You can run the command
  143. <code class="literal">SELECT version();</code> to
  144. find out the version of the server you are connected to. Most executable
  145. programs also support a <code class="option">--version</code> option; at least
  146. <code class="literal">postgres --version</code> and <code class="literal">psql --version</code>
  147. should work.
  148. If the function or the options do not exist then your version is
  149. more than old enough to warrant an upgrade.
  150. If you run a prepackaged version, such as RPMs, say so, including any
  151. subversion the package might have. If you are talking about a Git
  152. snapshot, mention that, including the commit hash.
  153. </p><p>
  154. If your version is older than 12.4 we will almost certainly
  155. tell you to upgrade. There are many bug fixes and improvements
  156. in each new release, so it is quite possible that a bug you have
  157. encountered in an older release of <span class="productname">PostgreSQL</span>
  158. has already been fixed. We can only provide limited support for
  159. sites using older releases of <span class="productname">PostgreSQL</span>; if you
  160. require more than we can provide, consider acquiring a
  161. commercial support contract.
  162. </p><p>
  163. </p></li><li class="listitem"><p>
  164. Platform information. This includes the kernel name and version,
  165. C library, processor, memory information, and so on. In most
  166. cases it is sufficient to report the vendor and version, but do
  167. not assume everyone knows what exactly <span class="quote">“<span class="quote">Debian</span>”</span>
  168. contains or that everyone runs on x86_64. If you have
  169. installation problems then information about the toolchain on
  170. your machine (compiler, <span class="application">make</span>, and so
  171. on) is also necessary.
  172. </p></li></ul></div><p>
  173. Do not be afraid if your bug report becomes rather lengthy. That is a fact of life.
  174. It is better to report everything the first time than us having to squeeze the
  175. facts out of you. On the other hand, if your input files are huge, it is
  176. fair to ask first whether somebody is interested in looking into it. Here is
  177. an <a class="ulink" href="https://www.chiark.greenend.org.uk/~sgtatham/bugs.html" target="_top">article</a>
  178. that outlines some more tips on reporting bugs.
  179. </p><p>
  180. Do not spend all your time to figure out which changes in the input make
  181. the problem go away. This will probably not help solving it. If it turns
  182. out that the bug cannot be fixed right away, you will still have time to
  183. find and share your work-around. Also, once again, do not waste your time
  184. guessing why the bug exists. We will find that out soon enough.
  185. </p><p>
  186. When writing a bug report, please avoid confusing terminology.
  187. The software package in total is called <span class="quote">“<span class="quote">PostgreSQL</span>”</span>,
  188. sometimes <span class="quote">“<span class="quote">Postgres</span>”</span> for short. If you
  189. are specifically talking about the backend process, mention that, do not
  190. just say <span class="quote">“<span class="quote">PostgreSQL crashes</span>”</span>. A crash of a single
  191. backend process is quite different from crash of the parent
  192. <span class="quote">“<span class="quote">postgres</span>”</span> process; please don't say <span class="quote">“<span class="quote">the server
  193. crashed</span>”</span> when you mean a single backend process went down, nor vice versa.
  194. Also, client programs such as the interactive frontend <span class="quote">“<span class="quote"><span class="application">psql</span></span>”</span>
  195. are completely separate from the backend. Please try to be specific
  196. about whether the problem is on the client or server side.
  197. </p></div><div class="sect2" id="id-1.3.8.7"><div class="titlepage"><div><div><h3 class="title">5.3. Where to Report Bugs</h3></div></div></div><p>
  198. In general, send bug reports to the bug report mailing list at
  199. <code class="email">&lt;<a class="email" href="mailto:pgsql-bugs@lists.postgresql.org">pgsql-bugs@lists.postgresql.org</a>&gt;</code>.
  200. You are requested to use a descriptive subject for your email
  201. message, perhaps parts of the error message.
  202. </p><p>
  203. Another method is to fill in the bug report web-form available
  204. at the project's
  205. <a class="ulink" href="https://www.postgresql.org/" target="_top">web site</a>.
  206. Entering a bug report this way causes it to be mailed to the
  207. <code class="email">&lt;<a class="email" href="mailto:pgsql-bugs@lists.postgresql.org">pgsql-bugs@lists.postgresql.org</a>&gt;</code> mailing list.
  208. </p><p>
  209. If your bug report has security implications and you'd prefer that it
  210. not become immediately visible in public archives, don't send it to
  211. <code class="literal">pgsql-bugs</code>. Security issues can be
  212. reported privately to <code class="email">&lt;<a class="email" href="mailto:security@postgresql.org">security@postgresql.org</a>&gt;</code>.
  213. </p><p>
  214. Do not send bug reports to any of the user mailing lists, such as
  215. <code class="email">&lt;<a class="email" href="mailto:pgsql-sql@lists.postgresql.org">pgsql-sql@lists.postgresql.org</a>&gt;</code> or
  216. <code class="email">&lt;<a class="email" href="mailto:pgsql-general@lists.postgresql.org">pgsql-general@lists.postgresql.org</a>&gt;</code>.
  217. These mailing lists are for answering
  218. user questions, and their subscribers normally do not wish to receive
  219. bug reports. More importantly, they are unlikely to fix them.
  220. </p><p>
  221. Also, please do <span class="emphasis"><em>not</em></span> send reports to
  222. the developers' mailing list <code class="email">&lt;<a class="email" href="mailto:pgsql-hackers@lists.postgresql.org">pgsql-hackers@lists.postgresql.org</a>&gt;</code>.
  223. This list is for discussing the
  224. development of <span class="productname">PostgreSQL</span>, and it would be nice
  225. if we could keep the bug reports separate. We might choose to take up a
  226. discussion about your bug report on <code class="literal">pgsql-hackers</code>,
  227. if the problem needs more review.
  228. </p><p>
  229. If you have a problem with the documentation, the best place to report it
  230. is the documentation mailing list <code class="email">&lt;<a class="email" href="mailto:pgsql-docs@lists.postgresql.org">pgsql-docs@lists.postgresql.org</a>&gt;</code>.
  231. Please be specific about what part of the documentation you are unhappy
  232. with.
  233. </p><p>
  234. If your bug is a portability problem on a non-supported platform,
  235. send mail to <code class="email">&lt;<a class="email" href="mailto:pgsql-hackers@lists.postgresql.org">pgsql-hackers@lists.postgresql.org</a>&gt;</code>,
  236. so we (and you) can work on
  237. porting <span class="productname">PostgreSQL</span> to your platform.
  238. </p><div class="note"><h3 class="title">Note</h3><p>
  239. Due to the unfortunate amount of spam going around, all of the above
  240. lists will be moderated unless you are subscribed. That means there
  241. will be some delay before the email is delivered. If you wish to subscribe
  242. to the lists, please visit
  243. <a class="ulink" href="https://lists.postgresql.org/" target="_top">https://lists.postgresql.org/</a> for instructions.
  244. </p></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="resources.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="preface.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="tutorial.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">4. Further Information </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Part I. Tutorial</td></tr></table></div></body></html>
上海开阖软件有限公司 沪ICP备12045867号-1