Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
c7a7107f
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c7a7107f
编写于
10月 01, 2001
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revise shmget() and semget() failure messages to mention the possibility
of coping by reducing shared_buffers/max_connections settings.
上级
d7bdfab4
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
46 addition
and
19 deletion
+46
-19
src/backend/storage/ipc/ipc.c
src/backend/storage/ipc/ipc.c
+46
-19
未找到文件。
src/backend/storage/ipc/ipc.c
浏览文件 @
c7a7107f
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.7
0 2001/10/01 18:16:26
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.7
1 2001/10/01 23:26:55
tgl Exp $
*
* NOTES
*
...
...
@@ -299,12 +299,18 @@ InternalIpcSemaphoreCreate(IpcSemaphoreKey semKey,
if
(
errno
==
ENOSPC
)
fprintf
(
stderr
,
"
\n
This error does *not* mean that you have run out of disk space.
\n\n
"
"It occurs because either the system limit for the maximum number of
\n
"
"
\n
This error does *not* mean that you have run out of disk space.
\n
"
"
\n
"
"It occurs when either the system limit for the maximum number of
\n
"
"semaphore sets (SEMMNI), or the system wide maximum number of
\n
"
"semaphores (SEMMNS), would be exceeded. You need to raise the
\n
"
"respective kernel parameter. Look into the PostgreSQL documentation
\n
"
"for details.
\n\n
"
);
"respective kernel parameter. Alternatively, reduce PostgreSQL's
\n
"
"consumption of semaphores by reducing its max_connections parameter
\n
"
"(currently %d).
\n
"
"
\n
"
"The PostgreSQL Administrator's Guide contains more information about
\n
"
"configuring your system for PostgreSQL.
\n\n
"
,
MaxBackends
);
proc_exit
(
1
);
}
...
...
@@ -583,27 +589,48 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, uint32 size, int permission)
if
(
errno
==
EINVAL
)
fprintf
(
stderr
,
"
\n
This error can be caused by one of three things:
\n\n
"
"1. The maximum size for shared memory segments on your system was
\n
"
" exceeded. You need to raise the SHMMAX parameter in your kernel
\n
"
" to be at least %u bytes.
\n\n
"
"2. The requested shared memory segment was too small for your system.
\n
"
" You need to lower the SHMMIN parameter in your kernel.
\n\n
"
"3. The requested shared memory segment already exists but is of the
\n
"
" wrong size. This can occur if some other application on your system
\n
"
" is also using shared memory.
\n\n
"
"
\n
This error usually means that PostgreSQL's request for a shared memory
\n
"
"segment exceeded your kernel's SHMMAX parameter. You can either
\n
"
"reduce the request size or reconfigure the kernel with larger SHMMAX.
\n
"
"To reduce the request size (currently %u bytes), reduce
\n
"
"PostgreSQL's shared_buffers parameter (currently %d) and/or
\n
"
"its max_connections parameter (currently %d).
\n
"
"
\n
"
"If the request size is already small, it's possible that it is less than
\n
"
"your kernel's SHMMIN parameter, in which case raising the request size or
\n
"
"reconfiguring SHMMIN is called for.
\n
"
"
\n
"
"The PostgreSQL Administrator's Guide contains more information about
\n
"
"shared memory configuration.
\n\n
"
,
size
);
size
,
NBuffers
,
MaxBackends
);
else
if
(
errno
==
ENOMEM
)
fprintf
(
stderr
,
"
\n
This error usually means that PostgreSQL's request for a shared
\n
"
"memory segment exceeded available memory or swap space.
\n
"
"To reduce the request size (currently %u bytes), reduce
\n
"
"PostgreSQL's shared_buffers parameter (currently %d) and/or
\n
"
"its max_connections parameter (currently %d).
\n
"
"
\n
"
"The PostgreSQL Administrator's Guide contains more information about
\n
"
"shared memory configuration.
\n\n
"
,
size
,
NBuffers
,
MaxBackends
);
else
if
(
errno
==
ENOSPC
)
fprintf
(
stderr
,
"
\n
This error does *not* mean that you have run out of disk space.
\n\n
"
"It occurs either if all available shared memory ids have been taken,
\n
"
"
\n
This error does *not* mean that you have run out of disk space.
\n
"
"
\n
"
"It occurs either if all available shared memory IDs have been taken,
\n
"
"in which case you need to raise the SHMMNI parameter in your kernel,
\n
"
"or because the system's overall limit for shared memory has been
\n
"
"reached. The PostgreSQL Administrator's Guide contains more
\n
"
"information about shared memory configuration.
\n\n
"
);
"reached. If you cannot increase the shared memory limit,
\n
"
"reduce PostgreSQL's shared memory request (currently %u bytes),
\n
"
"by reducing its shared_buffers parameter (currently %d) and/or
\n
"
"its max_connections parameter (currently %d).
\n
"
"
\n
"
"The PostgreSQL Administrator's Guide contains more information about
\n
"
"shared memory configuration.
\n\n
"
,
size
,
NBuffers
,
MaxBackends
);
proc_exit
(
1
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录