Skip to content

Commit 6a77bff

Browse files
committed
Remove misleading hints about reducing the System V request size.
Since the request size will now be ~48 bytes regardless of how shared_buffers et. al. are set, much of this advice is no longer relevant.
1 parent 3cf39e6 commit 6a77bff

File tree

1 file changed

+9
-23
lines changed

1 file changed

+9
-23
lines changed

src/backend/port/sysv_shmem.c

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -167,39 +167,25 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, Size size)
167167
IPC_CREAT | IPC_EXCL | IPCProtection),
168168
(errno == EINVAL) ?
169169
errhint("This error usually means that PostgreSQL's request for a shared memory "
170-
"segment exceeded your kernel's SHMMAX parameter. You can either "
171-
"reduce the request size or reconfigure the kernel with larger SHMMAX. "
172-
"To reduce the request size (currently %lu bytes), reduce "
173-
"PostgreSQL's shared memory usage, perhaps by reducing shared_buffers "
174-
"or max_connections.\n"
175-
"If the request size is already small, it's possible that it is less than "
176-
"your kernel's SHMMIN parameter, in which case raising the request size or "
177-
"reconfiguring SHMMIN is called for.\n"
170+
"segment exceeded your kernel's SHMMAX parameter, or possibly that "
171+
"it is less than "
172+
"your kernel's SHMMIN parameter.\n"
178173
"The PostgreSQL documentation contains more information about shared "
179-
"memory configuration.",
180-
(unsigned long) size) : 0,
174+
"memory configuration.") : 0,
181175
(errno == ENOMEM) ?
182176
errhint("This error usually means that PostgreSQL's request for a shared "
183-
"memory segment exceeded available memory or swap space, "
184-
"or exceeded your kernel's SHMALL parameter. You can either "
185-
"reduce the request size or reconfigure the kernel with larger SHMALL. "
186-
"To reduce the request size (currently %lu bytes), reduce "
187-
"PostgreSQL's shared memory usage, perhaps by reducing shared_buffers "
188-
"or max_connections.\n"
177+
"memory segment exceeded your kernel's SHMALL parameter. You may need "
178+
"to reconfigure the kernel with larger SHMALL.\n"
189179
"The PostgreSQL documentation contains more information about shared "
190-
"memory configuration.",
191-
(unsigned long) size) : 0,
180+
"memory configuration.") : 0,
192181
(errno == ENOSPC) ?
193182
errhint("This error does *not* mean that you have run out of disk space. "
194183
"It occurs either if all available shared memory IDs have been taken, "
195184
"in which case you need to raise the SHMMNI parameter in your kernel, "
196185
"or because the system's overall limit for shared memory has been "
197-
"reached. If you cannot increase the shared memory limit, "
198-
"reduce PostgreSQL's shared memory request (currently %lu bytes), "
199-
"perhaps by reducing shared_buffers or max_connections.\n"
186+
"reached.\n"
200187
"The PostgreSQL documentation contains more information about shared "
201-
"memory configuration.",
202-
(unsigned long) size) : 0));
188+
"memory configuration.") : 0));
203189
}
204190

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy