Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2cc8e6a

Browse files
author
Thomas G. Lockhart
committed
Renamed from bug-reports.sgml. Not all problems are bugs ;)
1 parentccad6d6 commit2cc8e6a

File tree

1 file changed

+314
-0
lines changed

1 file changed

+314
-0
lines changed

‎doc/src/sgml/problems.sgml

Lines changed: 314 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,314 @@
1+
<sect1>
2+
<title>Problem Reporting Guidelines</title>
3+
4+
<para>
5+
When you encounter a problem in <productname>PostgreSQL</productname> we want to
6+
hear about it. Your bug reports are an important part in making
7+
<productname>PostgreSQL</productname> more reliable because even the utmost
8+
care cannot guarantee that every part of PostgreSQL will work on every
9+
platform under every circumstance.
10+
</para>
11+
12+
<para>
13+
The following suggestions are intended to assist you in forming bug reports
14+
that can be handled in an effective fashion. No one is required to follow
15+
them but it tends to be to everyone's advantage.
16+
</para>
17+
18+
<para>
19+
We cannot promise to fix every bug right away. If the bug is obvious, critical,
20+
or affects a lot of users, chances are good that someone will look into it. It
21+
could also happen that we tell you to update to a newer version to see if the
22+
bug happens there. Or we might decide that the bug
23+
cannot be fixed before some major rewrite we might be planning is done. Or
24+
perhaps it's simply too hard and there are more important things on the agenda.
25+
If you need help immediately, consider obtaining a commercial support contract.
26+
</para>
27+
28+
<sect2>
29+
<title>Identifying Bugs</title>
30+
31+
<para>
32+
Before you ask <quote>Is this a bug?</quote>, please read and re-read the
33+
documentation to verify that you can really do whatever it is you are
34+
trying. If it is not clear from the documentation whether you can do
35+
something or not, please report that too; it's a bug in the documentation.
36+
If it turns out that the program does something different from what the
37+
documentation says, that's a bug. That might include, but is not limited to,
38+
the following circumstances:
39+
40+
<itemizedlist>
41+
<listitem>
42+
<para>
43+
A program terminates with a fatal signal or an operating system
44+
error message that would point to a problem in the program (a
45+
counterexample might be a <quote>disk full</quote> message,
46+
since that must be fixed outside of <productname>Postgres</productname>).
47+
</para>
48+
</listitem>
49+
50+
<listitem>
51+
<para>
52+
A program produces the wrong output for any given input.
53+
</para>
54+
</listitem>
55+
56+
<listitem>
57+
<para>
58+
A program refuses to accept valid input.
59+
</para>
60+
</listitem>
61+
62+
<listitem>
63+
<para>
64+
A program accepts invalid input without a notice or error message.
65+
</para>
66+
</listitem>
67+
68+
<listitem>
69+
<para>
70+
<productname>PostgreSQL</productname> fails to compile, build, or
71+
install according to the instructions on supported platforms.
72+
</para>
73+
</listitem>
74+
</itemizedlist>
75+
76+
Here <quote>program</quote> refers to any executable, not only the backend server.
77+
</para>
78+
79+
<para>
80+
Being slow or resource-hogging is not necessarily a bug. Read the documentation
81+
or ask on one of the mailing lists for help in tuning your applications. Failing
82+
to comply to <acronym>SQL</acronym> is not a bug unless compliance for the
83+
specific feature is explicitly claimed.
84+
</para>
85+
86+
<para>
87+
Before you continue, check on the TODO list and in the FAQ to see if your bug is
88+
already known. If you can't decode the information on the TODO list, report your
89+
problem. The least we can do is make the TODO list clearer.
90+
</para>
91+
</sect2>
92+
93+
<sect2>
94+
<title>What to report</title>
95+
96+
<para>
97+
The most important thing to remember about bug reporting is to state all
98+
the facts and only facts. Do not speculate what you think went wrong, what
99+
<quote>it seemed to do</quote>, or which part of the program has a fault.
100+
If you are not familiar with the implementation you would probably guess
101+
wrong and not help us a bit. And even if you are, educated explanations are
102+
a great supplement to but no substitute for facts. If we are going to fix
103+
the bug we still have to see it happen for ourselves first.
104+
Reporting the bare facts
105+
is relatively straightforward (you can probably copy and paste them from the
106+
screen) but all too often important details are left out because someone
107+
thought it doesn't matter or the report would <quote>ring a bell</quote>
108+
anyway.
109+
</para>
110+
111+
<para>
112+
The following items should be contained in every bug report:
113+
114+
<itemizedlist>
115+
<listitem>
116+
<para>
117+
The exact sequence of steps <emphasis>from program startup</emphasis>
118+
necessary to reproduce the problem. This should be self-contained;
119+
it is not enough to send in a bare select statement without the
120+
preceeding create table and insert statements, if the output should
121+
depend on the data in the tables. We do not have the time
122+
to decode your database schema, and if we are supposed to make up
123+
our own data we would probably miss the problem.
124+
The best format for a test case for
125+
query-language related problems is a file that can be run through the
126+
<application>psql</application> frontend
127+
that shows the problem. (Be sure to not have anything in your
128+
<filename>~/.psqlrc</filename> startup file.) You are encouraged to
129+
minimize the size of your example, but this is not absolutely necessary.
130+
If the bug is reproduceable, we'll find it either way.
131+
</para>
132+
<para>
133+
If your application uses some other client interface, such as PHP, then
134+
please try to isolate the offending queries. We probably won't set up a
135+
web server to reproduce your problem. In any case remember to provide
136+
the exact input files, do not guess that the problem happens for
137+
<quote>large files</quote> or <quote>mid-size databases</quote>, etc.
138+
</para>
139+
</listitem>
140+
141+
<listitem>
142+
<para>
143+
The output you got. Please do not say that it <quote>didn't work</quote> or
144+
<quote>failed</quote>. If there is an error message,
145+
show it, even if you don't understand it. If the program terminates with
146+
an operating system error, say which. If nothing at all happens, say so.
147+
Even if the result of your test case is a program crash or otherwise obvious
148+
it might not happen on our platform. The easiest thing is to copy the output
149+
from the terminal, if possible.
150+
</para>
151+
<note>
152+
<para>
153+
In case of fatal errors, the error message provided by the client might
154+
not contain all the information available. In that case, also look at the
155+
output of the database server. If you do not keep your server output,
156+
this would be a good time to start doing so.
157+
</para>
158+
</note>
159+
</listitem>
160+
161+
<listitem>
162+
<para>
163+
The output you expected is very important to state. If you just write
164+
<quote>This command gives me that output.</quote> or <quote>This is not
165+
what I expected.</quote>, we might run it ourselves, scan the output, and
166+
think it looks okay and is exactly what we expected. We shouldn't have to
167+
spend the time to decode the exact semantics behind your commands.
168+
Especially refrain from merely saying that <quote>This is not what SQL says/Oracle
169+
does.</quote> Digging out the correct behavior from <acronym>SQL</acronym>
170+
is not a fun undertaking, nor do we all know how all the other relational
171+
databases out there behave. (If your problem is a program crash you can
172+
obviously omit this item.)
173+
</para>
174+
</listitem>
175+
176+
<listitem>
177+
<para>
178+
Any command line options and other startup options, including concerned
179+
environment variables or configuration files that you changed from the
180+
default. Again, be exact. If you are using a pre-packaged
181+
distribution that starts the database server at boot time, you should try
182+
to find out how that is done.
183+
</para>
184+
</listitem>
185+
186+
<listitem>
187+
<para>
188+
Anything you did at all differently from the installation instructions.
189+
</para>
190+
</listitem>
191+
192+
<listitem>
193+
<para>
194+
The PostgreSQL version. You can run the command
195+
<literal>SELECT version();</literal> to
196+
find out. If this function does not exist, say so, then we know that
197+
your version is old enough. If you can't start up the server or a
198+
client, look into the README file in the source directory or at the
199+
name of your distribution file or package name. If your version is older
200+
than 6.5 we will almost certainly tell you to upgrade. There are tons
201+
of bugs in old versions, that's why we write new ones.
202+
</para>
203+
<para>
204+
If you run a pre-packaged version, such as RPMs, say so, including any
205+
subversion the package may have. If you are talking about a CVS
206+
snapshot, mention that, including its date and time.
207+
</para>
208+
</listitem>
209+
210+
<listitem>
211+
<para>
212+
Platform information. This includes the kernel name and version, C library,
213+
processor, memory information. In most cases it is sufficient to report
214+
the vendor and version, but do not assume everyone knows what exactly
215+
<quote>Debian</quote> contains or that everyone runs on Pentiums. If
216+
you have installation problems information about compilers, make, etc.
217+
is also necessary.
218+
</para>
219+
</listitem>
220+
</itemizedlist>
221+
222+
Do not be afraid if your bug report becomes rather lengthy. That is a fact of life.
223+
It's better to report everything the first time than us having to squeeze the
224+
facts out of you. On the other hand, if your input files are huge, it is
225+
fair to ask first whether somebody is interested in looking into it.
226+
</para>
227+
228+
<para>
229+
Do not spend all your time to figure out which changes in the input make
230+
the problem go away. This will probably not help solving it. If it turns
231+
out that the bug can't be fixed right away, you will still have time to
232+
find and share your work around. Also, once again, do not waste your time
233+
guessing why the bug exists. We'll find that out soon enough.
234+
</para>
235+
236+
<para>
237+
When writing a bug report, please choose non-confusing terminology.
238+
The software package as such is called <quote>PostgreSQL</quote>,
239+
sometimes <quote>Postgres</quote> for short. (Sometimes
240+
the abbreviation <quote>Pgsql</quote> is used but don't do that.) When you
241+
are specifically talking about the backend server, mention that, don't
242+
just say <quote>Postgres crashes</quote>. The interactive frontend is called
243+
<quote>psql</quote> and is for all intends and purposes completely separate
244+
from the backend.
245+
</para>
246+
</sect2>
247+
248+
<sect2>
249+
<title>Where to report bugs</title>
250+
251+
<para>
252+
In general, send bug reports to &lt;pgsql-bugs@postgresql.org&gt;. You are
253+
invited to find a descriptive subject for your email message, perhaps parts
254+
of the error message.
255+
</para>
256+
257+
<para>
258+
Do not send bug reports to any of the user mailing lists, such as
259+
pgsql-sql or pgsql-general. These mailing lists are for answering
260+
user questions, their subscribers normally do not wish to receive
261+
bug reports. More importantly, they are unlikely to fix them.
262+
</para>
263+
264+
<para>
265+
Also, please do <emphasis>not</emphasis> send reports to
266+
&lt;pgsql-hackers@postgresql.org&gt;. This list is for discussing the
267+
development of <productname>PostgreSQL</productname>, it would be nice
268+
if we could keep the bug reports separate. We might choose take up a
269+
discussion
270+
about your bug report on it, if the bug needs more review.
271+
</para>
272+
273+
<para>
274+
If you have a problem with the documentation, send email to
275+
&lt;pgsql-docs@postgresql.org&gt;. Refer to the document, chapter, and sections.
276+
</para>
277+
278+
<para>
279+
If your bug is a portability problem on a non-supported platform, send
280+
mail to &lt;pgsql-ports@postgresql.org&gt;, so we (and you) can work on
281+
porting <productname>PostgreSQL</productname> to your platform.
282+
</para>
283+
284+
<note>
285+
<para>
286+
Due to the unfortunate amount of spam going around, all of the above
287+
email addresses are closed mailing lists. That is, you need to be
288+
subscribed to them in order to be allowed to post. If you simply
289+
want to send mail but do not want to receive list traffic, you can
290+
subscribe to the special pgsql-loophole <quote>list</quote>, which
291+
allows you to post to all <productname>PostgreSQL</productname>
292+
mailing lists without receiving any messages. Send email to
293+
&lt;pgsql-loophole-request@postgresql.org&gt; to subscribe.
294+
</para>
295+
</note>
296+
</sect2>
297+
</sect1>
298+
299+
<!-- Keep this comment at the end of the file
300+
Local variables:
301+
mode:sgml
302+
sgml-omittag:nil
303+
sgml-shorttag:t
304+
sgml-minimize-attributes:nil
305+
sgml-always-quote-attributes:t
306+
sgml-indent-step:1
307+
sgml-indent-data:t
308+
sgml-parent-document:nil
309+
sgml-default-dtd-file:"./reference.ced"
310+
sgml-exposed-tags:nil
311+
sgml-local-catalogs:("/usr/lib/sgml/catalog")
312+
sgml-local-ecat-files:nil
313+
End:
314+
-->

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp