documentation references invalid -A assertion checks option

Started by Merlin Moncureover 11 years ago4 messages
#1Merlin Moncure
mmoncure@gmail.com

Both the documentation
(http://www.postgresql.org/docs/9.4/static/app-postgres.html) and the
--help switch to postgres reference a -A switch to handle assertion
checking. Looking at the code, I don't see any entry for -A in the
getopt string and passing -A always fails with 'invalid option'
regardless of the compile time setting. If I'm right, either the docs
or the source need to be patched. The question is, which one? (I
vote to remove references to the option).

merlin

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#2Andres Freund
andres@2ndquadrant.com
In reply to: Merlin Moncure (#1)
Re: documentation references invalid -A assertion checks option

On 2014-09-22 08:43:02 -0500, Merlin Moncure wrote:

Both the documentation
(http://www.postgresql.org/docs/9.4/static/app-postgres.html) and the
--help switch to postgres reference a -A switch to handle assertion
checking. Looking at the code, I don't see any entry for -A in the
getopt string and passing -A always fails with 'invalid option'
regardless of the compile time setting. If I'm right, either the docs
or the source need to be patched. The question is, which one? (I
vote to remove references to the option).

You're probably building master. That option has been removed (by me)
since. The 'devel' docs don't show the option anymore unless I missed a
place referencing it.

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andres Freund (#2)
Re: documentation references invalid -A assertion checks option

Andres Freund <andres@2ndquadrant.com> writes:

On 2014-09-22 08:43:02 -0500, Merlin Moncure wrote:

Both the documentation
(http://www.postgresql.org/docs/9.4/static/app-postgres.html) and the
--help switch to postgres reference a -A switch to handle assertion
checking.

You're probably building master. That option has been removed (by me)
since. The 'devel' docs don't show the option anymore unless I missed a
place referencing it.

As Merlin says, HEAD is still doing this:

$ postgres --help
postgres is the PostgreSQL server.

Usage:
postgres [OPTION]...

Options:
-A 1|0 enable/disable run-time assert checking
...

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#4Andres Freund
andres@2ndquadrant.com
In reply to: Tom Lane (#3)
Re: documentation references invalid -A assertion checks option

On 2014-09-22 09:58:49 -0400, Tom Lane wrote:

Andres Freund <andres@2ndquadrant.com> writes:

On 2014-09-22 08:43:02 -0500, Merlin Moncure wrote:

Both the documentation
(http://www.postgresql.org/docs/9.4/static/app-postgres.html) and the
--help switch to postgres reference a -A switch to handle assertion
checking.

You're probably building master. That option has been removed (by me)
since. The 'devel' docs don't show the option anymore unless I missed a
place referencing it.

As Merlin says, HEAD is still doing this:

$ postgres --help
postgres is the PostgreSQL server.

Usage:
postgres [OPTION]...

Options:
-A 1|0 enable/disable run-time assert checking
...

Gah, 3bdcf6a5a7555035810e2ba2b8a0fb04dc5c66b8 removed several doc
references about it, but not --help. Will fix.

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers