Robert Haas wrote:
> On Tue, Nov 29, 2011 at 7:13 PM, Bruce Momjian <bruce@momjian.us> wrote:
> >> Yes. ?-O0 is really a pretty horrid default choice, and we should NOT be
> >> recommending it, especially not with no discussion of the disadvantages.
> >
> > I have applied the attached patch to mention the debugger. ?OK?
>
> Not really. That's still too much encouragement. I think you should
> just take that part out altogether.
>
> Discussing changes before committing them might be a good idea, too.
Well, the original patch got no replies, so I figured it was OK.
I modified the docs to just mention that a debugger might need special
flags.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml
new file mode 100644
index 76c64e5..1135961
*** a/doc/src/sgml/installation.sgml
--- b/doc/src/sgml/installation.sgml
*************** su - postgres
*** 1417,1424 ****
<para>
Server developers should consider using the configure options
<option>--enable-cassert</> and <option>--enable-debug</> to enhance the
! ability to detect and debug server errors. They should also consider
! running configure with <literal>CFLAGS="-O0 -g"</> if using a debugger.
</para>
</note>
</step>
--- 1417,1424 ----
<para>
Server developers should consider using the configure options
<option>--enable-cassert</> and <option>--enable-debug</> to enhance the
! ability to detect and debug server errors. Your debugger might
! also require specific compiler flags to produce useful output.
</para>
</note>
</step>