Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
a4ee277e
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,发现更多精彩内容 >>
提交
a4ee277e
编写于
1月 03, 2002
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
droplang had same problem as createlang; default are backwards and did
not work. Fixed to match createlang.
上级
f9b792c5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
23 addition
and
23 deletion
+23
-23
doc/src/sgml/ref/droplang.sgml
doc/src/sgml/ref/droplang.sgml
+5
-6
src/bin/scripts/droplang
src/bin/scripts/droplang
+18
-17
未找到文件。
doc/src/sgml/ref/droplang.sgml
浏览文件 @
a4ee277e
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/droplang.sgml,v 1.1
5 2001/12/08 03:24:36 thomas
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/droplang.sgml,v 1.1
6 2002/01/03 06:09:01 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -23,8 +23,8 @@ PostgreSQL documentation
<cmdsynopsis>
<command>droplang</command>
<arg rep="repeat"><replaceable>connection-options</replaceable></arg>
<arg><replaceable>langname</replaceable></arg>
<arg
choice="plain"
><replaceable>dbname</replaceable></arg>
<arg
choice="plain"
><replaceable>langname</replaceable></arg>
<arg><replaceable>dbname</replaceable></arg>
<sbr>
<command>droplang</command>
<arg rep="repeat"><replaceable>connection-options</replaceable></arg>
...
...
@@ -45,9 +45,6 @@ PostgreSQL documentation
<listitem>
<para>
Specifies the name of the backend programming language to be removed.
<application>droplang</application> will prompt for
<replaceable class="parameter">langname</replaceable>
if it is not specified on the command line.
</para>
</listitem>
</varlistentry>
...
...
@@ -57,6 +54,8 @@ PostgreSQL documentation
<listitem>
<para>
Specifies from which database the language should be removed.
The default is to create a database with the same name as the
current system user.
</para>
</listitem>
</varlistentry>
...
...
src/bin/scripts/droplang
浏览文件 @
a4ee277e
...
...
@@ -7,7 +7,7 @@
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/droplang,v 1.1
8 2001/09/30 22:17:51
momjian Exp $
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/droplang,v 1.1
9 2002/01/03 06:09:02
momjian Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -111,7 +111,7 @@ if [ "$usage" ]; then
echo
"
$CMDNAME
removes a procedural language from a database."
echo
echo
"Usage:"
echo
"
$CMDNAME
[options]
[langname [dbname]
]"
echo
"
$CMDNAME
[options]
langname [dbname
]"
echo
echo
"Options:"
echo
" -h, --host=HOSTNAME Database server host"
...
...
@@ -121,14 +121,24 @@ if [ "$usage" ]; then
echo
" -d, --dbname=DBNAME Database to remove language from"
echo
" -l, --list Show a list of currently installed languages"
echo
echo
"If 'langname' is not specified, you will be prompted interactively."
echo
"A database name must be specified."
echo
echo
"Report bugs to <pgsql-bugs@postgresql.org>."
exit
0
fi
if
[
-z
"
$dbname
"
]
;
then
if
[
"
$PGUSER
"
]
;
then
dbname
=
"
$PGUSER
"
else
dbname
=
`
${
PATHNAME
}
pg_id
-u
-n
`
fi
[
"
$?
"
-ne
0
]
&&
exit
1
fi
# ----------
# List option, doesn't need langname
# ----------
if
[
"
$list
"
]
;
then
sqlcmd
=
"SELECT lanname as
\"
Name
\"
, lanpltrusted as
\"
Trusted?
\"
FROM pg_language WHERE lanispl = TRUE"
if
[
"
$showsql
"
=
yes
]
;
then
...
...
@@ -140,23 +150,14 @@ fi
# ----------
#
Check that we have a databas
e
#
We can't go any farther without a langnam
e
# ----------
if
[
-z
"
$
db
name
"
]
;
then
echo
"
$CMDNAME
: missing required argument
databas
e name"
1>&2
if
[
-z
"
$
lang
name
"
]
;
then
echo
"
$CMDNAME
: missing required argument
languag
e name"
1>&2
echo
"Try '
$CMDNAME
--help' for help."
1>&2
exit
1
fi
# ----------
# If not given on the commandline, ask for the language
# ----------
if
[
-z
"
$langname
"
]
;
then
$ECHO_N
"Language to remove from database
$dbname
: "
$ECHO_C
read
langname
fi
PSQL
=
"
${
PATHNAME
}
psql -A -t -q
$PSQLOPT
-d
$dbname
-c"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录