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

Commit67a5e72

Browse files
committed
Be less detailed about reporting shared memory failure by avoiding the
output of actual Postgres parameter _values_ related to shared memory,and suggesting that these are only possible parameters to reduce.
1 parentb04137a commit67a5e72

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

‎src/backend/port/sysv_shmem.c

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,37 +153,36 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, Size size)
153153
"segment exceeded your kernel's SHMMAX parameter. You can either "
154154
"reduce the request size or reconfigure the kernel with larger SHMMAX. "
155155
"To reduce the request size (currently %lu bytes), reduce "
156-
"PostgreSQL'sshared_buffers parameter (currently %d) and/or"
157-
"its max_connections parameter (currently %d).\n"
156+
"PostgreSQL'sshared memory usage, perhaps by reducing shared_buffers"
157+
"or max_connections.\n"
158158
"If the request size is already small, it's possible that it is less than "
159159
"your kernel's SHMMIN parameter, in which case raising the request size or "
160160
"reconfiguring SHMMIN is called for.\n"
161161
"The PostgreSQL documentation contains more information about shared "
162162
"memory configuration.",
163-
(unsigned long)size,NBuffers,MaxBackends) :0,
163+
(unsigned long)size) :0,
164164
(errno==ENOMEM) ?
165165
errhint("This error usually means that PostgreSQL's request for a shared "
166166
"memory segment exceeded available memory or swap space, "
167167
"or exceeded your kernel's SHMALL parameter. You can either "
168168
"reduce the request size or reconfigure the kernel with larger SHMALL. "
169169
"To reduce the request size (currently %lu bytes), reduce "
170-
"PostgreSQL'sshared_buffers parameter (currently %d) and/or"
171-
"its max_connections parameter (currently %d).\n"
170+
"PostgreSQL'sshared memory usage, perhaps by reducing shared_buffers"
171+
"or max_connections.\n"
172172
"The PostgreSQL documentation contains more information about shared "
173173
"memory configuration.",
174-
(unsigned long)size,NBuffers,MaxBackends) :0,
174+
(unsigned long)size) :0,
175175
(errno==ENOSPC) ?
176176
errhint("This error does *not* mean that you have run out of disk space. "
177177
"It occurs either if all available shared memory IDs have been taken, "
178178
"in which case you need to raise the SHMMNI parameter in your kernel, "
179179
"or because the system's overall limit for shared memory has been "
180180
"reached. If you cannot increase the shared memory limit, "
181181
"reduce PostgreSQL's shared memory request (currently %lu bytes), "
182-
"by reducing its shared_buffers parameter (currently %d) and/or "
183-
"its max_connections parameter (currently %d).\n"
182+
"perhaps by reducing shared_buffers or max_connections.\n"
184183
"The PostgreSQL documentation contains more information about shared "
185184
"memory configuration.",
186-
(unsigned long)size,NBuffers,MaxBackends) :0));
185+
(unsigned long)size) :0));
187186
}
188187

189188
/* Register on-exit routine to delete the new segment */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp