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

Commitbbd4951

Browse files
committed
doc: Improve postgres command for shared_memory_size_in_huge_pages
The command used in the documentation to retrieve the value of theruntime-computed GUC shared_memory_size_in_huge_pages would also show tothe user all the log messages generated by the postmaster before andafter printing the wanted value. This can be confusing, as the wantedresult could be masked with a lot of noise.One way to avoid those log messages is to use something like "-clog_min_messages=fatal" in the command (my idea, but that's not commonknowledge). Rather than mentioning this option, suffix the command witha redirection of stderr to /dev/null, which is the stream location wherethe logs show up. This is enough to show only the GUC value to theuser when copy-pasting the command.Reported-by: Magnus HaganderAuthor: Nathan BossartDiscussion:https://postgr.es/m/20220314173417.GA1020555@nathanxps13
1 parent127aea2 commitbbd4951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎doc/src/sgml/runtime.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ export PG_OOM_ADJUST_VALUE=0
14481448
server must be shut down to view this runtime-computed parameter.
14491449
This might look like:
14501450
<programlisting>
1451-
$ <userinput>postgres -D $PGDATA -C shared_memory_size_in_huge_pages</userinput>
1451+
$ <userinput>postgres -D $PGDATA -C shared_memory_size_in_huge_pages 2> /dev/null</userinput>
14521452
3170
14531453
$ <userinput>grep ^Hugepagesize /proc/meminfo</userinput>
14541454
Hugepagesize: 2048 kB

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp