Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
0843ec08
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,发现更多精彩内容 >>
提交
0843ec08
编写于
1月 24, 2001
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add "idle in transaction" status message
上级
87070ccc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
181 addition
and
3 deletion
+181
-3
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+5
-3
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/misc/postgresql.conf.sample
+176
-0
未找到文件。
src/backend/tcop/postgres.c
浏览文件 @
0843ec08
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.20
4 2001/01/24 14:32:32
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.20
5 2001/01/24 15:53:59
momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -1680,7 +1680,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
if
(
!
IsUnderPostmaster
)
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.20
4 $ $Date: 2001/01/24 14:32:32
$
\n
"
);
puts
(
"$Revision: 1.20
5 $ $Date: 2001/01/24 15:53:59
$
\n
"
);
}
/*
...
...
@@ -1791,7 +1791,9 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
EnableNotifyInterrupt
();
set_ps_display
(
"idle"
);
if
(
!
IsTransactionBlock
())
set_ps_display
(
"idle"
);
else
set_ps_display
(
"idle in transaction"
);
/* Allow "die" interrupt to be processed while waiting */
ImmediateInterruptOK
=
true
;
...
...
src/backend/utils/misc/postgresql.conf.sample
浏览文件 @
0843ec08
...
...
@@ -18,3 +18,179 @@
# Any option can also be given as a command line switch to the
# postmaster, e.g., 'postmaster -c log_connections=on'. Some options
# can be set at run-time with the 'SET' SQL command.
enable_seqscan = true
enable_indexscan = true
enable_tidscan = true
enable_sort = true
enable_nestloop = true
enable_mergejoin = true
enable_hashjoin = true
ksqo = izer, false
geqo = true
tcpip_socket = false
ssl = false
fsync = true
silent_mode = false
log_connections = false
log_timestamp = false
log_pid = false
#ifdef USE_ASSERT_CHECKING
debug_assertions = true
#endif
debug_print_query = false
debug_print_parse = false
debug_print_rewritten = false
debug_print_plan = false
debug_pretty_print = false
show_parser_stats = false
show_planner_stats = false
show_executor_stats = false
show_query_stats = false
#ifdef BTREE_BUILD_STATS
show_btree_build_stats = false
#endif
trace_notify = false
#ifdef LOCK_DEBUG
trace_locks = false
trace_userlocks = false
trace_spinlocks = false
debug_deadlocks = false
#endif
hostname_lookup = false
show_source_port = false
sql_inheritance = true
{NULL, 0, NULL, false}
};
static struct config_int
ConfigureNamesInt[] =
{
geqo_threshold = PGC_USERSET, &geqo_rels,
DEFAULT_GEQO_RELS, 2, INT_MAX
geqo_pool_size = PGC_USERSET, &Geqo_pool_size,
DEFAULT_GEQO_POOL_SIZE, 0, MAX_GEQO_POOL_SIZE
geqo_effort = PGC_USERSET, &Geqo_effort,
1, 1, INT_MAX
geqo_generations = PGC_USERSET, &Geqo_generations,
0, 0, INT_MAX
geqo_random_seed = PGC_USERSET, &Geqo_random_seed,
-1, INT_MIN, INT_MAX
deadlock_timeout = PGC_POSTMASTER, &DeadlockTimeout,
1000, 0, INT_MAX
#ifdef ENABLE_SYSLOG
syslog = PGC_SIGHUP, &Use_syslog,
0, 0, 2
#endif
/*
* Note: There is some postprocessing done in PostmasterMain() to
* make sure the buffers are at least twice the number of
* backends, so the constraints here are partially unused.
*/
max_connections = PGC_POSTMASTER, &MaxBackends,
DEF_MAXBACKENDS, 1, MAXBACKENDS
shared_buffers = PGC_POSTMASTER, &NBuffers,
DEF_NBUFFERS, 16, INT_MAX
port = PGC_POSTMASTER, &PostPortNumber,
DEF_PGPORT, 1, 65535
sort_mem = PGC_USERSET, &SortMem,
512, 1, INT_MAX
debug_level = PGC_USERSET, &DebugLvl,
0, 0, 16
#ifdef LOCK_DEBUG
trace_lock_oidmin = PGC_SUSET, &Trace_lock_oidmin,
BootstrapObjectIdData, 1, INT_MAX
trace_lock_table = PGC_SUSET, &Trace_lock_table,
0, 0, INT_MAX
#endif
max_expr_depth = PGC_USERSET, &max_expr_depth,
DEFAULT_MAX_EXPR_DEPTH, 10, INT_MAX
unix_socket_permissions = PGC_POSTMASTER, &Unix_socket_permissions,
0777, 0000, 0777
checkpoint_timeout", PGC_POSTMASTER, &CheckPointTimeout,
300, 30, 1800
wal_buffers", PGC_POSTMASTER, &XLOGbuffers,
8, 4, INT_MAX
wal_files", PGC_POSTMASTER, &XLOGfiles,
0, 0, 64
wal_debug", PGC_SUSET, &XLOG_DEBUG,
0, 0, 16
commit_delay", PGC_USERSET, &CommitDelay,
5, 0, 1000
{NULL, 0, NULL, 0, 0, 0}
};
static struct config_real
ConfigureNamesReal[] =
{
effective_cache_size = PGC_USERSET, &effective_cache_size,
DEFAULT_EFFECTIVE_CACHE_SIZE, 0, DBL_MAX
random_page_cost = PGC_USERSET, &random_page_cost,
DEFAULT_RANDOM_PAGE_COST, 0, DBL_MAX
cpu_tuple_cost = PGC_USERSET, &cpu_tuple_cost,
DEFAULT_CPU_TUPLE_COST, 0, DBL_MAX
cpu_index_tuple_cost = PGC_USERSET, &cpu_index_tuple_cost,
DEFAULT_CPU_INDEX_TUPLE_COST, 0, DBL_MAX
cpu_operator_cost = PGC_USERSET, &cpu_operator_cost,
DEFAULT_CPU_OPERATOR_COST, 0, DBL_MAX
geqo_selection_bias = PGC_USERSET, &Geqo_selection_bias,
DEFAULT_GEQO_SELECTION_BIAS, MIN_GEQO_SELECTION_BIAS, MAX_GEQO_SELECTION_BIAS
{NULL, 0, NULL, 0.0, 0.0, 0.0}
};
static struct config_string
ConfigureNamesString[] =
{
krb_server_keyfile = PGC_POSTMASTER, &pg_krb_server_keyfile,
PG_KRB_SRVTAB, NULL
unix_socket_group = PGC_POSTMASTER, &Unix_socket_group,
" = NULL
#ifdef ENABLE_SYSLOG
syslog_facility = PGC_POSTMASTER, &Syslog_facility,
"LOCAL0 = check_facility
syslog_ident = PGC_POSTMASTER, &Syslog_ident,
"postgres = NULL
#endif
unix_socket_directory", PGC_POSTMASTER, &UnixSocketDir,
" = NULL
virtual_host", PGC_POSTMASTER, &VirtualHost,
" = NULL
{NULL, 0, NULL, NULL, NULL}
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录