[Doc] Tiny fix for regression tests example

Started by tanghy.fnst@fujitsu.comover 4 years ago4 messageshackersdocs
Jump to latest
#1tanghy.fnst@fujitsu.com
tanghy.fnst@fujitsu.com
hackersdocs

Hi

When reading PG DOC, found some example code not correct as it said.

https://www.postgresql.org/docs/devel/regress-run.html

Here's a tiny fix in regress.sgml.

-make check PGOPTIONS="-c log_checkpoints=on -c work_mem=50MB"

+make check PGOPTIONS="-c geqo=off -c work_mem=50MB"

log_checkpoints couldn't be set in PGOPTIONS.

Replace log_checkpoints with geqo in the example code.

-make check EXTRA_REGRESS_OPTS="--temp-config=test_postgresql.conf"

+make check EXTRA_REGRESS_OPTS="--temp-config=$(pwd)/test_postgresql.conf"

User needs to specify $(pwd) to let the command execute as expected.

The above example code is added by Peter in PG14. So I think we need to apply this fix at PG14/master.

I proposed this fix at pgsql-docs@lists.postgresql.org<mailto:pgsql-docs@lists.postgresql.org> at [1]/messages/by-id/OS0PR01MB6113FA937648B8F7A372359BFB009@OS0PR01MB6113.jpnprd01.prod.outlook.com. But no reply except Craig. So I please allow me to post the patch at Hackers’ mail list again in case the fix is missed.

[1]: /messages/by-id/OS0PR01MB6113FA937648B8F7A372359BFB009@OS0PR01MB6113.jpnprd01.prod.outlook.com

Regards,

Tang

Attachments:

0001-minor-fix-for-regress-example.patchapplication/octet-stream; name=0001-minor-fix-for-regress-example.patchDownload+2-3
#2Michael Paquier
michael@paquier.xyz
In reply to: tanghy.fnst@fujitsu.com (#1)
hackersdocs
Re: [Doc] Tiny fix for regression tests example

On Fri, Jul 23, 2021 at 06:12:02AM +0000, tanghy.fnst@fujitsu.com wrote:

Here's a tiny fix in regress.sgml.

-make check PGOPTIONS="-c log_checkpoints=on -c work_mem=50MB"
+make check PGOPTIONS="-c geqo=off -c work_mem=50MB"

log_checkpoints couldn't be set in PGOPTIONS.

Replace log_checkpoints with geqo in the example code.

Right, that won't work. What about using something more
developer-oriented here, say force_parallel_mode=regress?

-make check EXTRA_REGRESS_OPTS="--temp-config=test_postgresql.conf"
+make check EXTRA_REGRESS_OPTS="--temp-config=$(pwd)/test_postgresql.conf"

User needs to specify $(pwd) to let the command execute as expected.

This works as-is.
--
Michael

#3tanghy.fnst@fujitsu.com
tanghy.fnst@fujitsu.com
In reply to: Michael Paquier (#2)
hackersdocs
RE: [Doc] Tiny fix for regression tests example

On Monday, July 26, 2021 1:04 PM, Michael Paquier <michael@paquier.xyz> wrote:

-make check PGOPTIONS="-c log_checkpoints=on -c work_mem=50MB"
+make check PGOPTIONS="-c geqo=off -c work_mem=50MB"

log_checkpoints couldn't be set in PGOPTIONS.

Replace log_checkpoints with geqo in the example code

Right, that won't work. What about using something more
developer-oriented here, say force_parallel_mode=regress?

Thanks for your comment. Agree with your suggestion.
Modified it in the attachment patch.

Regards,
Tang

Attachments:

V2-0001-minor-fix-for-regress-example.patchapplication/octet-stream; name=V2-0001-minor-fix-for-regress-example.patchDownload+2-3
#4Michael Paquier
michael@paquier.xyz
In reply to: tanghy.fnst@fujitsu.com (#3)
hackersdocs
Re: [Doc] Tiny fix for regression tests example

On Mon, Jul 26, 2021 at 05:50:28AM +0000, tanghy.fnst@fujitsu.com wrote:

Thanks for your comment. Agree with your suggestion.
Modified it in the attachment patch.

Okay, applied, but without the pwd part.
--
Michael