Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
868d7081
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,发现更多精彩内容 >>
提交
868d7081
编写于
9月 05, 1997
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add // comments.
上级
b45311e0
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
36 addition
and
33 deletion
+36
-33
src/backend/parser/scan.l
src/backend/parser/scan.l
+3
-1
src/backend/utils/sort/psort.c
src/backend/utils/sort/psort.c
+11
-11
src/bin/psql/psql.c
src/bin/psql/psql.c
+3
-2
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+13
-13
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-exec.c
+6
-6
未找到文件。
src/backend/parser/scan.l
浏览文件 @
868d7081
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.1
6 1997/09/02 02:32:35 thomas
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.1
7 1997/09/05 00:09:20 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -120,6 +120,7 @@ real -?{digit}+\.{digit}+([Ee][-+]?{digit}+)?
param \${integer}
comment "--".*\n
comment2 "//".*\n
space [ \t\n\f]
other .
...
...
@@ -131,6 +132,7 @@ other .
}
{comment} { /* ignore */ }
{comment2} { /* ignore */ }
{xcline} { /* ignore */ }
...
...
src/backend/utils/sort/psort.c
浏览文件 @
868d7081
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.1
7 1997/08/19 21:36:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.1
8 1997/09/05 00:09:23
momjian Exp $
*
* NOTES
* Sorts the first relation into the second relation.
...
...
@@ -90,21 +90,21 @@ static long shortzero = 0; /* used to delimit runs */
*
* LeftistContextData treeContext;
*
* static int TapeRange;
// number of tapes - 1 (T) //
* static int Level;
// (l) //
* static int TotalDummy;
// summation of tp_dummy //
* static int TapeRange;
number of tapes - 1 (T)
* static int Level;
(l)
* static int TotalDummy;
summation of tp_dummy
* static struct tape *Tape;
*
* static int BytesRead;
// to keep track of # of IO //
* static int BytesRead;
to keep track of # of IO
* static int BytesWritten;
*
* struct leftist *Tuples;
// current tuples in memory //
* struct leftist *Tuples;
current tuples in memory
*
* FILE *psort_grab_file;
//
this holds tuples grabbed
* from merged sort runs
//
* long psort_current;
// current file position //
* long psort_saved;
//
file position saved for
* mark and restore
//
* FILE *psort_grab_file; this holds tuples grabbed
* from merged sort runs
* long psort_current;
current file position
* long psort_saved; file position saved for
* mark and restore
*/
/*
...
...
src/bin/psql/psql.c
浏览文件 @
868d7081
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.
89 1997/09/01 06:09:53 thomas
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.
90 1997/09/05 00:09:30 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1605,7 +1605,8 @@ MainLoop(PsqlSettings * settings, FILE * source)
continue
;
/* single-line comment? truncate line */
}
else
if
(
line
[
i
]
==
'-'
&&
line
[
i
+
1
]
==
'-'
)
{
}
else
if
((
line
[
i
]
==
'-'
&&
line
[
i
+
1
]
==
'-'
)
||
(
line
[
i
]
==
'/'
&&
line
[
i
+
1
]
==
'/'
))
{
/* print comment at top of query */
if
(
settings
->
singleStep
)
fprintf
(
stdout
,
"%s
\n
"
,
line
+
i
);
...
...
src/interfaces/libpq/fe-connect.c
浏览文件 @
868d7081
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.3
7 1997/06/06 01:42:02 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.3
8 1997/09/05 00:09:43 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -423,14 +423,14 @@ connectDB(PGconn *conn)
int
portno
;
/*
//
//
Initialize the startup packet.
//
//
This data structure is used for the seq-packet protocol. It
//
describes the frontend-backend connection.
//
//
*/
*
*
Initialize the startup packet.
*
*
This data structure is used for the seq-packet protocol. It
*
describes the frontend-backend connection.
*
*
*/
strncpy
(
startup
.
user
,
conn
->
pguser
,
sizeof
(
startup
.
user
));
strncpy
(
startup
.
database
,
conn
->
dbName
,
sizeof
(
startup
.
database
));
strncpy
(
startup
.
tty
,
conn
->
pgtty
,
sizeof
(
startup
.
tty
));
...
...
@@ -442,10 +442,10 @@ connectDB(PGconn *conn)
startup
.
execFile
[
0
]
=
'\0'
;
/* not used */
/*
//
//
Open a connection to postmaster/backend.
//
*/
*
*
Open a connection to postmaster/backend.
*
*/
port
=
(
Port
*
)
malloc
(
sizeof
(
Port
));
memset
((
char
*
)
port
,
0
,
sizeof
(
Port
));
...
...
src/interfaces/libpq/fe-exec.c
浏览文件 @
868d7081
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.3
4 1997/08/27 09:05:23 vadim
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.3
5 1997/09/05 00:09:47 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -436,11 +436,11 @@ process_response_from_backend(FILE *pfin, FILE *pfout, FILE *pfdebug,
done
=
true
;
}
else
{
/*
//
since backend may produce more than one result for some
//
commands need to poll until clear
//
send an empty query down, and keep reading out of the pipe
//
until an 'I' is received.
*/
*
since backend may produce more than one result for some
*
commands need to poll until clear
*
send an empty query down, and keep reading out of the pipe
*
until an 'I' is received.
*/
pqPuts
(
"Q "
,
pfout
,
pfdebug
);
/* send an empty query */
/*
* Increment a flag and process messages in the usual way because
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录