Skip to content

Commit 2884073

Browse files
committed
Document --enable-cassert.
1 parent eda82e7 commit 2884073

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

doc/src/sgml/installation.sgml

+27-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/installation.sgml,v 1.37 2001/02/17 16:52:53 tgl Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/installation.sgml,v 1.38 2001/02/19 22:25:43 tgl Exp $ -->
22

33
<chapter id="installation">
44
<title><![%flattext-install-include[<productname>PostgreSQL</>]]> Installation Instructions</title>
@@ -682,8 +682,32 @@ su - postgres
682682
<para>
683683
Compiles all programs and libraries with debugging symbols.
684684
This means that you can run the programs through a debugger
685-
to analyze problems. This option is not recommended for
686-
production use.
685+
to analyze problems. This enlarges the size of the installed
686+
executables considerably, and on non-gcc compilers it usually
687+
also disables compiler optimization, causing slowdowns. However,
688+
having the symbols available is extremely helpful for dealing
689+
with any problems that may arise. Currently, this option is
690+
considered of marginal value for production installations, but
691+
you should have it on if you are doing development work or
692+
running a beta version.
693+
</para>
694+
</listitem>
695+
</varlistentry>
696+
697+
<varlistentry>
698+
<term>--enable-cassert</term>
699+
<listitem>
700+
<para>
701+
Enables <firstterm>assertion</> checks in the server, which test for
702+
many <quote>can't happen</> conditions. This is invaluable for
703+
code development purposes, but the tests slow things down a little.
704+
Also, having the tests turned on won't necessarily enhance the
705+
stability of your server! The assertion checks are not categorized
706+
for severity, and so what might be a relatively harmless bug will
707+
still lead to postmaster restarts if it triggers an assertion
708+
failure. Currently, this option is not recommended for
709+
production use, but you should have it on for development work
710+
or when running a beta version.
687711
</para>
688712
</listitem>
689713
</varlistentry>

0 commit comments

Comments
 (0)