Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
4542581b
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,发现更多精彩内容 >>
提交
4542581b
编写于
10月 06, 2004
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Adjustment to test on unix domain socket variable for pg_hba.conf
default settings, rather than just Win32.
上级
c93872d8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
8 deletion
+8
-8
src/backend/libpq/pg_hba.conf.sample
src/backend/libpq/pg_hba.conf.sample
+2
-2
src/bin/initdb/initdb.c
src/bin/initdb/initdb.c
+6
-6
未找到文件。
src/backend/libpq/pg_hba.conf.sample
浏览文件 @
4542581b
...
...
@@ -60,8 +60,8 @@
# TYPE DATABASE USER CIDR-ADDRESS METHOD
@remove-line-for-
win32
@# "local" is for Unix domain socket connections only
@remove-line-for-
win32
@local all all @authmethod@
@remove-line-for-
nolocal
@# "local" is for Unix domain socket connections only
@remove-line-for-
nolocal
@local all all @authmethod@
# IPv4 local connections:
host all all 127.0.0.1/32 @authmethod@
# IPv6 local connections:
...
...
src/bin/initdb/initdb.c
浏览文件 @
4542581b
...
...
@@ -39,7 +39,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
*
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.5
5 2004/10/06 09:01:18
momjian Exp $
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.5
6 2004/10/06 09:13:10
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -147,7 +147,7 @@ char backend_exec[MAXPGPATH];
static
void
*
xmalloc
(
size_t
size
);
static
char
*
xstrdup
(
const
char
*
s
);
static
char
**
replace_token
(
char
**
lines
,
char
*
token
,
char
*
replacement
);
#if
def WIN32
#if
ndef HAVE_UNIX_SOCKETS
static
char
**
filter_lines_with_token
(
char
**
lines
,
char
*
token
);
#endif
static
char
**
readfile
(
char
*
path
);
...
...
@@ -318,7 +318,7 @@ replace_token(char **lines, char *token, char *replacement)
* a sort of poor man's grep -v
*
*/
#if
def WIN32
#if
ndef HAVE_UNIX_SOCKETS
static
char
**
filter_lines_with_token
(
char
**
lines
,
char
*
token
)
{
...
...
@@ -1124,10 +1124,10 @@ setup_config(void)
conflines
=
readfile
(
hba_file
);
#if
def WIN32
conflines
=
filter_lines_with_token
(
conflines
,
"@remove-line-for-
win32
@"
);
#if
ndef HAVE_UNIX_SOCKETS
conflines
=
filter_lines_with_token
(
conflines
,
"@remove-line-for-
nolocal
@"
);
#else
conflines
=
replace_token
(
conflines
,
"@remove-line-for-
win32
@"
,
""
);
conflines
=
replace_token
(
conflines
,
"@remove-line-for-
nolocal
@"
,
""
);
#endif
#ifndef HAVE_IPV6
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录