Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
78693c89
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,发现更多精彩内容 >>
提交
78693c89
编写于
2月 16, 2000
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean up include files use in psql.
上级
5933f185
变更
27
隐藏空白更改
内联
并排
Showing
27 changed file
with
65 addition
and
134 deletion
+65
-134
src/bin/pg_id/pg_id.c
src/bin/pg_id/pg_id.c
+2
-2
src/bin/psql/command.c
src/bin/psql/command.c
+4
-7
src/bin/psql/command.h
src/bin/psql/command.h
+2
-4
src/bin/psql/common.c
src/bin/psql/common.c
+6
-9
src/bin/psql/common.h
src/bin/psql/common.h
+2
-3
src/bin/psql/copy.c
src/bin/psql/copy.c
+3
-6
src/bin/psql/copy.h
src/bin/psql/copy.h
+2
-4
src/bin/psql/describe.c
src/bin/psql/describe.c
+3
-7
src/bin/psql/describe.h
src/bin/psql/describe.h
+1
-2
src/bin/psql/help.c
src/bin/psql/help.c
+4
-6
src/bin/psql/help.h
src/bin/psql/help.h
+1
-3
src/bin/psql/input.c
src/bin/psql/input.c
+3
-4
src/bin/psql/input.h
src/bin/psql/input.h
+1
-4
src/bin/psql/large_obj.c
src/bin/psql/large_obj.c
+3
-7
src/bin/psql/large_obj.h
src/bin/psql/large_obj.h
+1
-3
src/bin/psql/mainloop.c
src/bin/psql/mainloop.c
+3
-7
src/bin/psql/mainloop.h
src/bin/psql/mainloop.h
+1
-3
src/bin/psql/print.c
src/bin/psql/print.c
+4
-7
src/bin/psql/print.h
src/bin/psql/print.h
+2
-6
src/bin/psql/prompt.c
src/bin/psql/prompt.c
+3
-7
src/bin/psql/prompt.h
src/bin/psql/prompt.h
+1
-3
src/bin/psql/settings.h
src/bin/psql/settings.h
+2
-8
src/bin/psql/startup.c
src/bin/psql/startup.c
+2
-5
src/bin/psql/stringutils.c
src/bin/psql/stringutils.c
+3
-6
src/bin/psql/tab-complete.c
src/bin/psql/tab-complete.c
+3
-6
src/bin/psql/variables.c
src/bin/psql/variables.c
+2
-3
src/bin/psql/variables.h
src/bin/psql/variables.h
+1
-2
未找到文件。
src/bin/pg_id/pg_id.c
浏览文件 @
78693c89
...
...
@@ -6,9 +6,9 @@
*
* Copyright (C) 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.1
2 2000/02/09 16:23:42
momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.1
3 2000/02/16 13:15:25
momjian Exp $
*/
#include <
c
.h>
#include <
postgres
.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
...
...
src/bin/psql/command.c
浏览文件 @
78693c89
...
...
@@ -3,16 +3,13 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.1
8 2000/02/07 23:10:04 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.1
9 2000/02/16 13:15:26 momjian
Exp $
*/
#include
<c.h>
#include
"postgres.h"
#include "command.h"
#include <errno.h>
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#ifndef WIN32
#include <sys/types.h>
/* for umask() */
...
...
@@ -22,8 +19,8 @@
#include <win32.h>
#endif
#include
<libpq-fe.h>
#include
<pqexpbuffer.h>
#include
"libpq-fe.h"
#include
"pqexpbuffer.h"
#include "common.h"
#include "copy.h"
...
...
src/bin/psql/command.h
浏览文件 @
78693c89
...
...
@@ -3,14 +3,12 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/command.h,v 1.
7 2000/01/29 16:58:48 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/command.h,v 1.
8 2000/02/16 13:15:26 momjian
Exp $
*/
#ifndef COMMAND_H
#define COMMAND_H
#include <c.h>
#include <pqexpbuffer.h>
#include "pqexpbuffer.h"
#include "settings.h"
#include "print.h"
...
...
src/bin/psql/common.c
浏览文件 @
78693c89
...
...
@@ -3,15 +3,12 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.1
3 2000/02/13 21:45:14 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.1
4 2000/02/16 13:15:26 momjian
Exp $
*/
#include
<c.h>
#include
"postgres.h"
#include "common.h"
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#ifdef HAVE_TERMIOS_H
#include <termios.h>
...
...
@@ -27,10 +24,10 @@
#include <win32.h>
#endif
#include
<libpq-fe.h>
#include
<postgres_ext.h>
#include
<pqsignal.h>
#include
<version.h>
#include
"libpq-fe.h"
#include
"postgres_ext.h"
#include
"pqsignal.h"
#include
"version.h"
#include "settings.h"
#include "variables.h"
...
...
src/bin/psql/common.h
浏览文件 @
78693c89
...
...
@@ -3,13 +3,12 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.
5 2000/01/29 16:58:48 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.
6 2000/02/16 13:15:26 momjian
Exp $
*/
#ifndef COMMON_H
#define COMMON_H
#include <c.h>
#include <libpq-fe.h>
#include "libpq-fe.h"
char
*
xstrdup
(
const
char
*
string
);
...
...
src/bin/psql/copy.c
浏览文件 @
78693c89
...
...
@@ -3,14 +3,11 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/copy.c,v 1.
9 2000/01/29 16:58:48 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/copy.c,v 1.
10 2000/02/16 13:15:26 momjian
Exp $
*/
#include
<c.h>
#include
"postgres.h"
#include "copy.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#ifndef WIN32
...
...
@@ -19,7 +16,7 @@
#include <io.h>
/* I think */
#endif
#include
<libpq-fe.h>
#include
"libpq-fe.h"
#include "settings.h"
#include "common.h"
...
...
src/bin/psql/copy.h
浏览文件 @
78693c89
...
...
@@ -3,14 +3,12 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/copy.h,v 1.
6 2000/01/29 16:58:48 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/copy.h,v 1.
7 2000/02/16 13:15:26 momjian
Exp $
*/
#ifndef COPY_H
#define COPY_H
#include <c.h>
#include <stdio.h>
#include <libpq-fe.h>
#include "libpq-fe.h"
/* handler for \copy */
bool
do_copy
(
const
char
*
args
);
...
...
src/bin/psql/describe.c
浏览文件 @
78693c89
...
...
@@ -3,16 +3,12 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.1
6 2000/02/07 23:10:06 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.1
7 2000/02/16 13:15:26 momjian
Exp $
*/
#include
<c.h>
#include
"postgres.h"
#include "describe.h"
#include <string.h>
#include <postgres.h>
/* for VARHDRSZ, int4 type */
#include <postgres_ext.h>
#include <libpq-fe.h>
#include "libpq-fe.h"
#include "common.h"
#include "settings.h"
...
...
src/bin/psql/describe.h
浏览文件 @
78693c89
...
...
@@ -3,12 +3,11 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/describe.h,v 1.
7 2000/01/29 16:58:48 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/describe.h,v 1.
8 2000/02/16 13:15:26 momjian
Exp $
*/
#ifndef DESCRIBE_H
#define DESCRIBE_H
#include <c.h>
#include "settings.h"
/* \da */
...
...
src/bin/psql/help.c
浏览文件 @
78693c89
...
...
@@ -3,13 +3,11 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.1
8 2000/02/13 21:45:14 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.1
9 2000/02/16 13:15:26 momjian
Exp $
*/
#include
<c.h>
#include
"postgres.h"
#include "help.h"
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <errno.h>
...
...
@@ -24,8 +22,8 @@
#include <win32.h>
#endif
#include
<pqsignal.h>
#include
<libpq-fe.h>
#include
"pqsignal.h"
#include
"libpq-fe.h"
#include "settings.h"
#include "common.h"
...
...
src/bin/psql/help.h
浏览文件 @
78693c89
...
...
@@ -3,13 +3,11 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/help.h,v 1.
5 2000/01/29 16:58:48 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/help.h,v 1.
6 2000/02/16 13:15:26 momjian
Exp $
*/
#ifndef HELP_H
#define HELP_H
#include <c.h>
void
usage
(
void
);
void
slashUsage
(
void
);
...
...
src/bin/psql/input.c
浏览文件 @
78693c89
...
...
@@ -3,15 +3,14 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.
9 2000/02/07 23:10:06 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.
10 2000/02/16 13:15:26 momjian
Exp $
*/
#include
<c.h>
#include
"postgres.h"
#include "input.h"
#include <errno.h>
#include <pqexpbuffer.h>
#include "pqexpbuffer.h"
#include "settings.h"
#include "tab-complete.h"
#include "common.h"
...
...
src/bin/psql/input.h
浏览文件 @
78693c89
...
...
@@ -3,14 +3,11 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/input.h,v 1.
7 2000/02/07 23:10:06 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/input.h,v 1.
8 2000/02/16 13:15:26 momjian
Exp $
*/
#ifndef INPUT_H
#define INPUT_H
#include <c.h>
#include <stdio.h>
/*
* If some other file needs to have access to readline/history, include this
* file and save yourself all this work.
...
...
src/bin/psql/large_obj.c
浏览文件 @
78693c89
...
...
@@ -3,16 +3,12 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/large_obj.c,v 1.
8 2000/02/07 23:10:06 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/large_obj.c,v 1.
9 2000/02/16 13:15:26 momjian
Exp $
*/
#include
<c.h>
#include
"postgres.h"
#include "large_obj.h"
#include <stdio.h>
#include <string.h>
#include <libpq-fe.h>
#include <postgres.h>
#include "libpq-fe.h"
#include "settings.h"
#include "variables.h"
...
...
src/bin/psql/large_obj.h
浏览文件 @
78693c89
...
...
@@ -3,13 +3,11 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/large_obj.h,v 1.
7 2000/01/29 16:58:49 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/large_obj.h,v 1.
8 2000/02/16 13:15:26 momjian
Exp $
*/
#ifndef LARGE_OBJ_H
#define LARGE_OBJ_H
#include <c.h>
bool
do_lo_export
(
const
char
*
loid_arg
,
const
char
*
filename_arg
);
bool
do_lo_import
(
const
char
*
filename_arg
,
const
char
*
comment_arg
);
bool
do_lo_unlink
(
const
char
*
loid_arg
);
...
...
src/bin/psql/mainloop.c
浏览文件 @
78693c89
...
...
@@ -3,16 +3,12 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.
19 2000/02/13 21:45:14 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.
20 2000/02/16 13:15:26 momjian
Exp $
*/
#include
<c.h>
#include
"postgres.h"
#include "mainloop.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pqexpbuffer.h>
#include "pqexpbuffer.h"
#include "settings.h"
#include "prompt.h"
...
...
src/bin/psql/mainloop.h
浏览文件 @
78693c89
...
...
@@ -3,13 +3,11 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/mainloop.h,v 1.
6 2000/01/29 16:58:49 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/mainloop.h,v 1.
7 2000/02/16 13:15:26 momjian
Exp $
*/
#ifndef MAINLOOP_H
#define MAINLOOP_H
#include <stdio.h>
int
MainLoop
(
FILE
*
source
);
#endif
/* MAINLOOP_H */
src/bin/psql/print.c
浏览文件 @
78693c89
...
...
@@ -3,13 +3,11 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.1
1 2000/02/09 16:23:43
momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.1
2 2000/02/16 13:15:26
momjian Exp $
*/
#include
<c.h>
#include
"postgres.h"
#include "print.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <signal.h>
#ifndef WIN32
...
...
@@ -20,9 +18,8 @@
#define pclose(x) _pclose(x)
#endif
#include <pqsignal.h>
#include <libpq-fe.h>
#include <postgres_ext.h>
/* for Oid type */
#include "pqsignal.h"
#include "libpq-fe.h"
#ifndef __CYGWIN__
#define DEFAULT_PAGER "more"
...
...
src/bin/psql/print.h
浏览文件 @
78693c89
...
...
@@ -3,16 +3,12 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/print.h,v 1.
6 2000/01/29 16:58:49 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/print.h,v 1.
7 2000/02/16 13:15:26 momjian
Exp $
*/
#ifndef PRINT_H
#define PRINT_H
#include <config.h>
#include <c.h>
#include <stdio.h>
#include <libpq-fe.h>
#include "libpq-fe.h"
enum
printFormat
{
...
...
src/bin/psql/prompt.c
浏览文件 @
78693c89
...
...
@@ -3,16 +3,12 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.
8 2000/02/07 23:10:06 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.
9 2000/02/16 13:15:26 momjian
Exp $
*/
#include
<c.h>
#include
"postgres.h"
#include "prompt.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <libpq-fe.h>
#include "libpq-fe.h"
#include "settings.h"
#include "common.h"
...
...
src/bin/psql/prompt.h
浏览文件 @
78693c89
...
...
@@ -3,13 +3,11 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.h,v 1.
6 2000/02/07 23:10:06 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.h,v 1.
7 2000/02/16 13:15:26 momjian
Exp $
*/
#ifndef PROMPT_H
#define PROMPT_H
#include <c.h>
typedef
enum
_promptStatus
{
PROMPT_READY
,
...
...
src/bin/psql/settings.h
浏览文件 @
78693c89
...
...
@@ -3,18 +3,12 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/settings.h,v 1.
8 2000/01/29 16:58:49 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/settings.h,v 1.
9 2000/02/16 13:15:26 momjian
Exp $
*/
#ifndef SETTINGS_H
#define SETTINGS_H
#include <c.h>
#include <stdio.h>
#include <stdlib.h>
#include <libpq-fe.h>
#include <postgres_ext.h>
#include "libpq-fe.h"
#include "variables.h"
#include "print.h"
...
...
src/bin/psql/startup.c
浏览文件 @
78693c89
...
...
@@ -3,14 +3,11 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.2
3 2000/02/13 21:45:14 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.2
4 2000/02/16 13:15:26 momjian
Exp $
*/
#include
<c.h>
#include
"postgres.h"
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#ifndef WIN32
#include <unistd.h>
...
...
src/bin/psql/stringutils.c
浏览文件 @
78693c89
...
...
@@ -3,18 +3,15 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.2
4 2000/02/07 23:10:06 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.2
5 2000/02/16 13:15:26 momjian
Exp $
*/
#include
<c.h>
#include
"postgres.h"
#include "stringutils.h"
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include
<libpq-fe.h>
#include
"libpq-fe.h"
...
...
src/bin/psql/tab-complete.c
浏览文件 @
78693c89
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.1
1 2000/02/15 20:49:22 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.1
2 2000/02/16 13:15:26 momjian
Exp $
*/
/*-----------
...
...
@@ -32,7 +32,7 @@
gracefully.
-------------*/
#include
<c.h>
#include
"postgres.h"
#include "tab-complete.h"
#include "input.h"
...
...
@@ -40,15 +40,12 @@
/* If we don't have this, we might as well forget about the whole thing: */
#ifdef USE_READLINE
#include <stdio.h>
#include <string.h>
#include <ctype.h>
/* toupper */
#include <stdlib.h>
/* malloc, free */
#ifdef USE_ASSERT_CHECKING
#include <assert.h>
#endif
#include
<libpq-fe.h>
#include
"libpq-fe.h"
#include "common.h"
#include "settings.h"
...
...
src/bin/psql/variables.c
浏览文件 @
78693c89
...
...
@@ -3,12 +3,11 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/variables.c,v 1.
6 2000/02/13 21:45:14 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/variables.c,v 1.
7 2000/02/16 13:15:26 momjian
Exp $
*/
#include
<c.h>
#include
"postgres.h"
#include "variables.h"
#include <stdlib.h>
#include <assert.h>
...
...
src/bin/psql/variables.h
浏览文件 @
78693c89
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/variables.h,v 1.
6 2000/02/13 21:45:14 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/variables.h,v 1.
7 2000/02/16 13:15:26 momjian
Exp $
*/
/*
...
...
@@ -14,7 +14,6 @@
#ifndef VARIABLES_H
#define VARIABLES_H
#include <c.h>
#define VALID_VARIABLE_CHARS "abcdefghijklmnopqrstuvwxyz"\
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" "0123456789_"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录