Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
20858bdd
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,发现更多精彩内容 >>
提交
20858bdd
编写于
11月 18, 1997
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make \d commands not wrap over 80 cols.
上级
79daac6b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
40 addition
and
44 deletion
+40
-44
src/bin/psql/psql.c
src/bin/psql/psql.c
+5
-9
src/include/catalog/pg_operator.h
src/include/catalog/pg_operator.h
+35
-35
未找到文件。
src/bin/psql/psql.c
浏览文件 @
20858bdd
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.11
1 1997/11/17 22:14:55
momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.11
2 1997/11/18 06:46:21
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1729,8 +1729,7 @@ HandleSlashCmds(PsqlSettings *pset,
{
/* operators */
SendQuery
(
&
success
,
pset
,
"\
SELECT o.oprname AS operator_, \
p.proname AS func_name, \
SELECT o.oprname AS op, \
t0.typname AS result, \
t1.typname AS left_type, \
t2.typname AS right_type, \
...
...
@@ -1743,12 +1742,10 @@ HandleSlashCmds(PsqlSettings *pset,
p.pronargs = 2 AND \
o.oprleft = t1.oid AND \
o.oprright = t2.oid \
ORDER BY operator_, func_name, result, left_type, \
right_type;"
,
ORDER BY op, result, left_type, right_type;"
,
false
,
false
,
0
);
SendQuery
(
&
success
,
pset
,
"\
SELECT o.oprname AS left_unary, \
p.proname AS func_name, \
t0.typname AS return_type, \
t1.typname AS operand, \
obj_description(o.oid) as description \
...
...
@@ -1757,11 +1754,10 @@ HandleSlashCmds(PsqlSettings *pset,
o.oprresult = t0.oid AND \
o.oprkind = 'l' AND \
o.oprright = t1.oid \
ORDER BY left_unary,
func_name,
return_type, operand;"
,
ORDER BY left_unary, return_type, operand;"
,
false
,
false
,
0
);
SendQuery
(
&
success
,
pset
,
"\
SELECT o.oprname AS right_unary, \
p.proname AS func_name, \
t0.typname AS return_type, \
t1.typname AS operand, \
obj_description(o.oid) as description \
...
...
@@ -1770,7 +1766,7 @@ HandleSlashCmds(PsqlSettings *pset,
o.oprresult = t0.oid AND \
o.oprkind = 'r' AND \
o.oprleft = t1.oid \
ORDER BY right_unary,
func_name,
return_type, operand;"
,
ORDER BY right_unary, return_type, operand;"
,
false
,
false
,
0
);
}
else
if
(
strncmp
(
cmd
,
"ds"
,
2
)
==
0
)
...
...
src/include/catalog/pg_operator.h
浏览文件 @
20858bdd
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_operator.h,v 1.
19 1997/11/18 05:22:49
momjian Exp $
* $Id: pg_operator.h,v 1.
20 1997/11/18 06:46:31
momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
...
...
@@ -450,7 +450,7 @@ DESCR("truncate to integer");
DATA
(
insert
OID
=
1282
(
":"
PGUID
0
l
t
f
0
701
701
0
0
0
0
dexp
-
-
));
DESCR
(
"exponential"
);
DATA
(
insert
OID
=
1283
(
";"
PGUID
0
l
t
f
0
701
701
0
0
0
0
dlog1
-
-
));
DESCR
(
"natural logarith (in psql, protect with
parentheses)
"
);
DESCR
(
"natural logarith (in psql, protect with
'()'
"
);
DATA
(
insert
OID
=
1284
(
"|"
PGUID
0
l
t
f
0
704
702
0
0
0
0
intervalstart
-
-
));
DESCR
(
"start of interval"
);
DATA
(
insert
OID
=
606
(
"<#>"
PGUID
0
b
t
f
702
702
704
0
0
0
0
mktinterval
-
-
));
...
...
@@ -524,13 +524,13 @@ DATA(insert OID = 638 ( "/" PGUID 0 b t f 18 18 18 0 0 0 0 chardiv eqsel
DESCR
(
"divide"
);
DATA
(
insert
OID
=
639
(
"~"
PGUID
0
b
t
f
19
25
16
0
640
0
0
nameregexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-sensitive"
);
DESCR
(
"matches reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
640
(
"!~"
PGUID
0
b
t
f
19
25
16
0
639
0
0
nameregexne
neqsel
neqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-sensitive"
);
DESCR
(
"does not match reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
641
(
"~"
PGUID
0
b
t
f
25
25
16
0
642
0
0
textregexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-sensitive"
);
DESCR
(
"matches reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
642
(
"!~"
PGUID
0
b
t
f
25
25
16
0
641
0
0
textregexne
eqsel
eqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-sensitive"
);
DESCR
(
"does not match reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
643
(
"<>"
PGUID
0
b
t
f
19
19
16
643
93
0
0
namene
neqsel
neqjoinsel
));
DESCR
(
"not equal"
);
DATA
(
insert
OID
=
644
(
"<>"
PGUID
0
b
t
f
20
20
16
644
1267
0
0
char16ne
neqsel
neqjoinsel
));
...
...
@@ -544,9 +544,9 @@ DESCR("greater-than");
DATA
(
insert
OID
=
648
(
">="
PGUID
0
b
t
f
20
20
16
646
645
0
0
char16ge
intltsel
intltjoinsel
));
DESCR
(
"greater-than-or-equals"
);
DATA
(
insert
OID
=
649
(
"~"
PGUID
0
b
t
f
20
25
16
0
650
0
0
char16regexeq
intltsel
intltjoinsel
));
DESCR
(
"matches reg
ular expression
, case-sensitive"
);
DESCR
(
"matches reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
650
(
"!~"
PGUID
0
b
t
f
20
25
16
650
0
0
0
char16regexne
intltsel
intltjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-sensitive"
);
DESCR
(
"does not match reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
651
(
"~~"
PGUID
0
b
t
f
20
25
16
0
651
0
0
char16like
eqsel
eqjoinsel
));
DESCR
(
"matches LIKE expression"
);
DATA
(
insert
OID
=
652
(
"!~~"
PGUID
0
b
t
f
20
25
16
651
0
0
0
char16nlike
neqsel
neqjoinsel
));
...
...
@@ -598,9 +598,9 @@ DATA(insert OID = 681 ( "<>" PGUID 0 b t f 911 911 16 681 678 0 0 oidnamen
DESCR
(
"not equal"
);
DATA
(
insert
OID
=
697
(
"~"
PGUID
0
b
t
f
411
25
16
0
698
0
0
char8regexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-sensitive"
);
DESCR
(
"matches reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
698
(
"!~"
PGUID
0
b
t
f
411
25
16
0
697
0
0
char8regexne
neqsel
neqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-sensitive"
);
DESCR
(
"does not match reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
706
(
"<->"
PGUID
0
b
t
f
603
603
701
706
0
0
0
box_distance
intltsel
intltjoinsel
));
DESCR
(
"distance between"
);
...
...
@@ -710,13 +710,13 @@ DATA(insert OID = 835 ( "<>" PGUID 0 b t f 810 810 16 835 832 0 0 oidint2n
DESCR
(
"not equal"
);
DATA
(
insert
OID
=
839
(
"~"
PGUID
0
b
t
f
409
25
16
0
841
0
0
char2regexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-sensitive"
);
DESCR
(
"matches reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
841
(
"!~"
PGUID
0
b
t
f
409
25
16
0
839
0
0
char2regexne
neqsel
neqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-sensitive"
);
DESCR
(
"does not match reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
840
(
"~"
PGUID
0
b
t
f
410
25
16
0
842
0
0
char4regexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-sensitive"
);
DESCR
(
"matches reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
842
(
"!~"
PGUID
0
b
t
f
410
25
16
0
840
0
0
char4regexne
neqsel
neqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-sensitive"
);
DESCR
(
"does not match reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
843
(
"*"
PGUID
0
b
t
f
790
700
790
845
0
0
0
cash_mul_flt4
-
-
));
DESCR
(
"multiply"
);
...
...
@@ -780,7 +780,7 @@ DESCR("addition");
DATA
(
insert
OID
=
967
(
"-"
PGUID
0
b
t
f
1034
1033
1034
0
0
0
0
aclremove
intltsel
intltjoinsel
));
DESCR
(
"subtract"
);
DATA
(
insert
OID
=
968
(
"~"
PGUID
0
b
t
f
1034
1033
16
0
0
0
0
aclcontains
intltsel
intltjoinsel
));
DESCR
(
"matches reg
ular expression
, case-sensitive"
);
DESCR
(
"matches reg
ex.
, case-sensitive"
);
/* additional geometric operators - thomas 1997-07-09 */
DATA
(
insert
OID
=
969
(
"@@"
PGUID
0
l
t
f
0
601
600
0
0
0
0
lseg_center
-
-
));
...
...
@@ -798,9 +798,9 @@ DESCR("concat");
DATA
(
insert
OID
=
1054
(
"="
PGUID
0
b
t
t
1042
1042
16
1054
1057
1058
1058
bpchareq
eqsel
eqjoinsel
));
DESCR
(
"equals"
);
DATA
(
insert
OID
=
1055
(
"~"
PGUID
0
b
t
f
1042
25
16
0
1056
0
0
textregexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-sensitive"
);
DESCR
(
"matches reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
1056
(
"!~"
PGUID
0
b
t
f
1042
25
16
0
1055
0
0
textregexne
neqsel
neqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-sensitive"
);
DESCR
(
"does not match reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
1057
(
"<>"
PGUID
0
b
t
f
1042
1042
16
1057
1054
0
0
bpcharne
neqsel
neqjoinsel
));
DESCR
(
"not equal"
);
DATA
(
insert
OID
=
1058
(
"<"
PGUID
0
b
t
f
1042
1042
16
1060
1061
0
0
bpcharlt
intltsel
intltjoinsel
));
...
...
@@ -815,9 +815,9 @@ DESCR("greater-than-or-equals");
DATA
(
insert
OID
=
1062
(
"="
PGUID
0
b
t
t
1043
1043
16
1062
1065
1066
1066
varchareq
eqsel
eqjoinsel
));
DESCR
(
"equals"
);
DATA
(
insert
OID
=
1063
(
"~"
PGUID
0
b
t
f
1043
25
16
0
1064
0
0
textregexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-sensitive"
);
DESCR
(
"matches reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
1064
(
"!~"
PGUID
0
b
t
f
1043
25
16
0
1063
0
0
textregexne
neqsel
neqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-sensitive"
);
DESCR
(
"does not match reg
ex.
, case-sensitive"
);
DATA
(
insert
OID
=
1065
(
"<>"
PGUID
0
b
t
f
1043
1043
16
1065
1062
0
0
varcharne
neqsel
neqjoinsel
));
DESCR
(
"not equal"
);
DATA
(
insert
OID
=
1066
(
"<"
PGUID
0
b
t
f
1043
1043
16
1068
1069
0
0
varcharlt
intltsel
intltjoinsel
));
...
...
@@ -988,37 +988,37 @@ DESCR("does not match LIKE expression");
/* case-insensitive LIKE hacks */
DATA
(
insert
OID
=
1220
(
"~*"
PGUID
0
b
t
f
409
25
16
0
1221
0
0
char2icregexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-insensitive"
);
DESCR
(
"matches reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1221
(
"!~*"
PGUID
0
b
t
f
409
25
16
0
1220
0
0
char2icregexne
neqsel
neqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-insensitive"
);
DESCR
(
"does not match reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1222
(
"~*"
PGUID
0
b
t
f
410
25
16
0
1223
0
0
char4icregexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-insensitive"
);
DESCR
(
"matches reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1223
(
"!~*"
PGUID
0
b
t
f
410
25
16
0
1222
0
0
char4icregexne
neqsel
neqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-insensitive"
);
DESCR
(
"does not match reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1224
(
"~*"
PGUID
0
b
t
f
411
25
16
0
1225
0
0
char8icregexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-insensitive"
);
DESCR
(
"matches reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1225
(
"!~*"
PGUID
0
b
t
f
411
25
16
0
1224
0
0
char8icregexne
neqsel
neqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-insensitive"
);
DESCR
(
"does not match reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1226
(
"~*"
PGUID
0
b
t
f
19
25
16
0
1227
0
0
nameicregexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-insensitive"
);
DESCR
(
"matches reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1227
(
"!~*"
PGUID
0
b
t
f
19
25
16
0
1226
0
0
nameicregexne
neqsel
neqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-insensitive"
);
DESCR
(
"does not match reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1228
(
"~*"
PGUID
0
b
t
f
25
25
16
0
1229
0
0
texticregexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-insensitive"
);
DESCR
(
"matches reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1229
(
"!~*"
PGUID
0
b
t
f
25
25
16
0
1228
0
0
texticregexne
eqsel
eqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-insensitive"
);
DESCR
(
"does not match reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1230
(
"~*"
PGUID
0
b
t
f
20
25
16
0
1231
0
0
char16icregexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-insensitive"
);
DESCR
(
"matches reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1231
(
"!~*"
PGUID
0
b
t
f
20
25
16
0
1230
0
0
char16icregexne
neqsel
neqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-insensitive"
);
DESCR
(
"does not match reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1232
(
"~*"
PGUID
0
b
t
f
1043
25
16
0
1233
0
0
texticregexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-insensitive"
);
DESCR
(
"matches reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1233
(
"!~*"
PGUID
0
b
t
f
1043
25
16
0
1232
0
0
texticregexne
neqsel
neqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-insensitive"
);
DESCR
(
"does not match reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1234
(
"~*"
PGUID
0
b
t
f
1042
25
16
0
1235
0
0
texticregexeq
eqsel
eqjoinsel
));
DESCR
(
"matches reg
ular expression
, case-insensitive"
);
DESCR
(
"matches reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1235
(
"!~*"
PGUID
0
b
t
f
1042
25
16
0
1234
0
0
texticregexne
neqsel
neqjoinsel
));
DESCR
(
"does not match reg
ular expression
, case-insensitive"
);
DESCR
(
"does not match reg
ex.
, case-insensitive"
);
DATA
(
insert
OID
=
1300
(
"="
PGUID
0
b
t
t
1296
1296
16
1300
1301
1302
1302
timestampeq
eqsel
eqjoinsel
));
DESCR
(
"equals"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录