Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
7221b4fa
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,发现更多精彩内容 >>
提交
7221b4fa
编写于
3月 18, 2007
作者:
N
Neil Conway
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Code cleanup: mark some variables with the "const" modifier, when they
are initialized with a string literal. Patch from Stefan Huehner.
上级
b9954fbb
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
30 addition
and
30 deletion
+30
-30
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/ruleutils.c
+3
-3
src/bin/initdb/initdb.c
src/bin/initdb/initdb.c
+10
-10
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_controldata/pg_controldata.c
+2
-2
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_ctl/pg_ctl.c
+2
-2
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.c
+2
-2
src/bin/pg_dump/pg_backup_custom.c
src/bin/pg_dump/pg_backup_custom.c
+2
-2
src/bin/pg_dump/pg_backup_files.c
src/bin/pg_dump/pg_backup_files.c
+2
-2
src/bin/pg_dump/pg_backup_tar.c
src/bin/pg_dump/pg_backup_tar.c
+2
-2
src/bin/pg_dump/pg_dump_sort.c
src/bin/pg_dump/pg_dump_sort.c
+2
-2
src/bin/psql/describe.c
src/bin/psql/describe.c
+3
-3
未找到文件。
src/backend/utils/adt/ruleutils.c
浏览文件 @
7221b4fa
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.25
5 2007/03/17 01:15:55 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.25
6 2007/03/18 16:50:42 neilc
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -106,9 +106,9 @@ typedef struct
...
@@ -106,9 +106,9 @@ typedef struct
* ----------
* ----------
*/
*/
static
SPIPlanPtr
plan_getrulebyoid
=
NULL
;
static
SPIPlanPtr
plan_getrulebyoid
=
NULL
;
static
char
*
query_getrulebyoid
=
"SELECT * FROM pg_catalog.pg_rewrite WHERE oid = $1"
;
static
c
onst
c
har
*
query_getrulebyoid
=
"SELECT * FROM pg_catalog.pg_rewrite WHERE oid = $1"
;
static
SPIPlanPtr
plan_getviewrule
=
NULL
;
static
SPIPlanPtr
plan_getviewrule
=
NULL
;
static
char
*
query_getviewrule
=
"SELECT * FROM pg_catalog.pg_rewrite WHERE ev_class = $1 AND rulename = $2"
;
static
c
onst
c
har
*
query_getviewrule
=
"SELECT * FROM pg_catalog.pg_rewrite WHERE ev_class = $1 AND rulename = $2"
;
/* ----------
/* ----------
...
...
src/bin/initdb/initdb.c
浏览文件 @
7221b4fa
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
* Portions taken from FreeBSD.
*
*
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.13
4 2007/02/20 23:49:38 momjian
Exp $
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.13
5 2007/03/18 16:50:43 neilc
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -727,7 +727,7 @@ get_encoding_id(char *encoding_name)
...
@@ -727,7 +727,7 @@ get_encoding_id(char *encoding_name)
struct
encoding_match
struct
encoding_match
{
{
enum
pg_enc
pg_enc_code
;
enum
pg_enc
pg_enc_code
;
c
har
*
system_enc_name
;
c
onst
char
*
system_enc_name
;
};
};
struct
encoding_match
encoding_match_list
[]
=
{
struct
encoding_match
encoding_match_list
[]
=
{
...
@@ -1481,8 +1481,8 @@ static void
...
@@ -1481,8 +1481,8 @@ static void
setup_auth
(
void
)
setup_auth
(
void
)
{
{
PG_CMD_DECL
;
PG_CMD_DECL
;
c
har
**
line
;
c
onst
char
**
line
;
static
char
*
pg_authid_setup
[]
=
{
static
c
onst
c
har
*
pg_authid_setup
[]
=
{
/*
/*
* Create triggers to ensure manual updates to shared catalogs will be
* Create triggers to ensure manual updates to shared catalogs will be
* reflected into their "flat file" copies.
* reflected into their "flat file" copies.
...
@@ -1623,8 +1623,8 @@ static void
...
@@ -1623,8 +1623,8 @@ static void
setup_depend
(
void
)
setup_depend
(
void
)
{
{
PG_CMD_DECL
;
PG_CMD_DECL
;
char
**
line
;
c
onst
c
har
**
line
;
static
char
*
pg_depend_setup
[]
=
{
static
c
onst
c
har
*
pg_depend_setup
[]
=
{
/*
/*
* Make PIN entries in pg_depend for all objects made so far in the
* Make PIN entries in pg_depend for all objects made so far in the
* tables that the dependency code handles. This is overkill (the
* tables that the dependency code handles. This is overkill (the
...
@@ -1990,8 +1990,8 @@ static void
...
@@ -1990,8 +1990,8 @@ static void
make_template0
(
void
)
make_template0
(
void
)
{
{
PG_CMD_DECL
;
PG_CMD_DECL
;
c
har
**
line
;
c
onst
char
**
line
;
static
char
*
template0_setup
[]
=
{
static
c
onst
c
har
*
template0_setup
[]
=
{
"CREATE DATABASE template0;
\n
"
,
"CREATE DATABASE template0;
\n
"
,
"UPDATE pg_database SET "
"UPDATE pg_database SET "
" datistemplate = 't', "
" datistemplate = 't', "
...
@@ -2045,8 +2045,8 @@ static void
...
@@ -2045,8 +2045,8 @@ static void
make_postgres
(
void
)
make_postgres
(
void
)
{
{
PG_CMD_DECL
;
PG_CMD_DECL
;
c
har
**
line
;
c
onst
char
**
line
;
static
char
*
postgres_setup
[]
=
{
static
c
onst
c
har
*
postgres_setup
[]
=
{
"CREATE DATABASE postgres;
\n
"
,
"CREATE DATABASE postgres;
\n
"
,
NULL
NULL
};
};
...
...
src/bin/pg_controldata/pg_controldata.c
浏览文件 @
7221b4fa
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001;
* copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001;
* licence: BSD
* licence: BSD
*
*
* $PostgreSQL: pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.3
3 2007/03/03 20:02:27 momjian
Exp $
* $PostgreSQL: pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.3
4 2007/03/18 16:50:43 neilc
Exp $
*/
*/
#include "postgres.h"
#include "postgres.h"
...
@@ -72,7 +72,7 @@ main(int argc, char *argv[])
...
@@ -72,7 +72,7 @@ main(int argc, char *argv[])
char
pgctime_str
[
128
];
char
pgctime_str
[
128
];
char
ckpttime_str
[
128
];
char
ckpttime_str
[
128
];
char
sysident_str
[
32
];
char
sysident_str
[
32
];
c
har
*
strftime_fmt
=
"%c"
;
c
onst
char
*
strftime_fmt
=
"%c"
;
const
char
*
progname
;
const
char
*
progname
;
set_pglocale_pgservice
(
argv
[
0
],
"pg_controldata"
);
set_pglocale_pgservice
(
argv
[
0
],
"pg_controldata"
);
...
...
src/bin/pg_ctl/pg_ctl.c
浏览文件 @
7221b4fa
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*
*
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.7
8 2007/02/10 14:58:55 petere
Exp $
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.7
9 2007/03/18 16:50:44 neilc
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -91,7 +91,7 @@ static char *post_opts = NULL;
...
@@ -91,7 +91,7 @@ static char *post_opts = NULL;
static
const
char
*
progname
;
static
const
char
*
progname
;
static
char
*
log_file
=
NULL
;
static
char
*
log_file
=
NULL
;
static
char
*
postgres_path
=
NULL
;
static
char
*
postgres_path
=
NULL
;
static
char
*
register_servicename
=
"PostgreSQL"
;
/* FIXME: + version ID? */
static
c
onst
c
har
*
register_servicename
=
"PostgreSQL"
;
/* FIXME: + version ID? */
static
char
*
register_username
=
NULL
;
static
char
*
register_username
=
NULL
;
static
char
*
register_password
=
NULL
;
static
char
*
register_password
=
NULL
;
static
char
*
argv0
=
NULL
;
static
char
*
argv0
=
NULL
;
...
...
src/bin/pg_dump/pg_backup_archiver.c
浏览文件 @
7221b4fa
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.14
2 2007/02/19 15:05:06 mha
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.14
3 2007/03/18 16:50:44 neilc
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
const
char
*
progname
;
const
char
*
progname
;
static
char
*
modulename
=
gettext_noop
(
"archiver"
);
static
c
onst
c
har
*
modulename
=
gettext_noop
(
"archiver"
);
static
ArchiveHandle
*
_allocAH
(
const
char
*
FileSpec
,
const
ArchiveFormat
fmt
,
static
ArchiveHandle
*
_allocAH
(
const
char
*
FileSpec
,
const
ArchiveFormat
fmt
,
...
...
src/bin/pg_dump/pg_backup_custom.c
浏览文件 @
7221b4fa
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_custom.c,v 1.3
7 2007/02/19 15:05:06 mha
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_custom.c,v 1.3
8 2007/03/18 16:50:44 neilc
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -91,7 +91,7 @@ static void _EndDataCompressor(ArchiveHandle *AH, TocEntry *te);
...
@@ -91,7 +91,7 @@ static void _EndDataCompressor(ArchiveHandle *AH, TocEntry *te);
static
pgoff_t
_getFilePos
(
ArchiveHandle
*
AH
,
lclContext
*
ctx
);
static
pgoff_t
_getFilePos
(
ArchiveHandle
*
AH
,
lclContext
*
ctx
);
static
int
_DoDeflate
(
ArchiveHandle
*
AH
,
lclContext
*
ctx
,
int
flush
);
static
int
_DoDeflate
(
ArchiveHandle
*
AH
,
lclContext
*
ctx
,
int
flush
);
static
char
*
modulename
=
gettext_noop
(
"custom archiver"
);
static
c
onst
c
har
*
modulename
=
gettext_noop
(
"custom archiver"
);
...
...
src/bin/pg_dump/pg_backup_files.c
浏览文件 @
7221b4fa
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.3
1 2007/02/19 15:05:06 mha
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.3
2 2007/03/18 16:50:44 neilc
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -65,7 +65,7 @@ typedef struct
...
@@ -65,7 +65,7 @@ typedef struct
char
*
filename
;
char
*
filename
;
}
lclTocEntry
;
}
lclTocEntry
;
static
char
*
modulename
=
gettext_noop
(
"file archiver"
);
static
c
onst
c
har
*
modulename
=
gettext_noop
(
"file archiver"
);
static
void
_LoadBlobs
(
ArchiveHandle
*
AH
,
RestoreOptions
*
ropt
);
static
void
_LoadBlobs
(
ArchiveHandle
*
AH
,
RestoreOptions
*
ropt
);
static
void
_getBlobTocEntry
(
ArchiveHandle
*
AH
,
Oid
*
oid
,
char
*
fname
);
static
void
_getBlobTocEntry
(
ArchiveHandle
*
AH
,
Oid
*
oid
,
char
*
fname
);
...
...
src/bin/pg_dump/pg_backup_tar.c
浏览文件 @
7221b4fa
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.5
7 2007/02/19 15:05:06 mha
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.5
8 2007/03/18 16:50:44 neilc
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -102,7 +102,7 @@ typedef struct
...
@@ -102,7 +102,7 @@ typedef struct
char
*
filename
;
char
*
filename
;
}
lclTocEntry
;
}
lclTocEntry
;
static
char
*
modulename
=
gettext_noop
(
"tar archiver"
);
static
c
onst
c
har
*
modulename
=
gettext_noop
(
"tar archiver"
);
static
void
_LoadBlobs
(
ArchiveHandle
*
AH
,
RestoreOptions
*
ropt
);
static
void
_LoadBlobs
(
ArchiveHandle
*
AH
,
RestoreOptions
*
ropt
);
...
...
src/bin/pg_dump/pg_dump_sort.c
浏览文件 @
7221b4fa
...
@@ -9,14 +9,14 @@
...
@@ -9,14 +9,14 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump_sort.c,v 1.1
7 2007/01/23 17:54:50 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump_sort.c,v 1.1
8 2007/03/18 16:50:44 neilc
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#include "pg_backup_archiver.h"
#include "pg_backup_archiver.h"
static
char
*
modulename
=
gettext_noop
(
"sorter"
);
static
c
onst
c
har
*
modulename
=
gettext_noop
(
"sorter"
);
/*
/*
* Sort priority for object types when dumping a pre-7.3 database.
* Sort priority for object types when dumping a pre-7.3 database.
...
...
src/bin/psql/describe.c
浏览文件 @
7221b4fa
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright (c) 2000-2007, PostgreSQL Global Development Group
* Copyright (c) 2000-2007, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.15
3 2007/03/16 08:28:01 mha
Exp $
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.15
4 2007/03/18 16:50:44 neilc
Exp $
*/
*/
#include "postgres_fe.h"
#include "postgres_fe.h"
#include "describe.h"
#include "describe.h"
...
@@ -1360,7 +1360,7 @@ describeOneTableDetails(const char *schemaname,
...
@@ -1360,7 +1360,7 @@ describeOneTableDetails(const char *schemaname,
/* print inherits */
/* print inherits */
for
(
i
=
0
;
i
<
inherits_count
;
i
++
)
for
(
i
=
0
;
i
<
inherits_count
;
i
++
)
{
{
c
har
*
s
=
_
(
"Inherits"
);
c
onst
char
*
s
=
_
(
"Inherits"
);
if
(
i
==
0
)
if
(
i
==
0
)
printfPQExpBuffer
(
&
buf
,
"%s: %s"
,
s
,
PQgetvalue
(
result6
,
i
,
0
));
printfPQExpBuffer
(
&
buf
,
"%s: %s"
,
s
,
PQgetvalue
(
result6
,
i
,
0
));
...
@@ -1374,7 +1374,7 @@ describeOneTableDetails(const char *schemaname,
...
@@ -1374,7 +1374,7 @@ describeOneTableDetails(const char *schemaname,
if
(
verbose
)
if
(
verbose
)
{
{
c
har
*
s
=
_
(
"Has OIDs"
);
c
onst
char
*
s
=
_
(
"Has OIDs"
);
printfPQExpBuffer
(
&
buf
,
"%s: %s"
,
s
,
printfPQExpBuffer
(
&
buf
,
"%s: %s"
,
s
,
(
tableinfo
.
hasoids
?
_
(
"yes"
)
:
_
(
"no"
)));
(
tableinfo
.
hasoids
?
_
(
"yes"
)
:
_
(
"no"
)));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录