-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp-droplang.html
More file actions
133 lines (131 loc) · 15.7 KB
/
Copy pathapp-droplang.html
File metadata and controls
133 lines (131 loc) · 15.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>droplang</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="prev" href="app-dropdb.html" title="dropdb" /><link rel="next" href="app-dropuser.html" title="dropuser" /><meta name="viewport" content="width=device-width,initial-scale=1.0" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><td width="20%" align="left" colspan="2"></td><th width="60%" align="center"><a accesskey="h" href="index.html">PostgreSQL 9.6.5文書</a></th><td width="20%" align="right"><div class="actions"><a class="issue" href="https://github.com/pgsql-jp/jpug-doc/issues/new?title=version 9.6.5 app-droplang.html">誤訳等の報告</a></div></td></tr><tr><td width="10%" align="left" valign="top"><a accesskey="p" href="app-dropdb.html">前へ</a> </td><td width="10%" align="left" valign="top"><a accesskey="u" href="reference-client.html">上へ</a></td><td width="60%" align="center"><span class="application">droplang</span></td><td width="20%" align="right" valign="top"> <a accesskey="n" href="app-dropuser.html">次へ</a></td></tr></table><hr /></div><div class="refentry" id="app-droplang"><div class="titlepage"></div><a id="idm45823020940656" class="indexterm"></a><div class="refnamediv"><h2>名前</h2><p>droplang<span class="original">
<refpurpose>remove a <productname>PostgreSQL</productname> procedural language</refpurpose>
</span> — <span class="productname">PostgreSQL</span>の手続き言語を削除する</p></div><div class="refsynopsisdiv"><h2>概要</h2><div class="cmdsynopsis"><p id="idm45823020936336"><code class="command">droplang</code> [<em class="replaceable"><code>connection-option</code></em>...] <em class="replaceable"><code>langname</code></em> [<em class="replaceable"><code>dbname</code></em>]</p></div><div class="cmdsynopsis"><p id="idm45823020932720"><code class="command">droplang</code> [<em class="replaceable"><code>connection-option</code></em>...] <code class="option">--list</code> | <code class="option">-l</code> [<em class="replaceable"><code>dbname</code></em>]</p></div></div><div class="refsect1" id="r1-app-droplang-1"><h2><span class="original">
Description
</span>説明
</h2><p><span class="original">
<application>droplang</application> is a utility for removing an
existing procedural language from a
<productname>PostgreSQL</productname> database.
</span><span class="application">droplang</span>は、<span class="productname">PostgreSQL</span>データベースにある手続き言語を削除するユーティリティです。
</p><p><span class="original">
<application>droplang</application> is just a wrapper around the
<xref linkend="sql-dropextension"> SQL command.
</span><span class="application">droplang</span>はSQLコマンド<a class="xref" href="sql-dropextension.html" title="DROP EXTENSION"><span class="refentrytitle">DROP EXTENSION</span></a>の単なるラッパです。
</p><div class="caution" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">注意</h3><p><span class="original">
<application>droplang</application> is deprecated and may be removed
in a future <productname>PostgreSQL</productname> release. Direct use
of the <command>DROP EXTENSION</> command is recommended instead.
</span><span class="application">droplang</span>は廃止予定であり、将来の<span class="productname">PostgreSQL</span>リリースで削除される可能性があります。
代わりに<code class="command">DROP EXTENSION</code>コマンドを直接使用することを推奨します。
</p></div></div><div class="refsect1" id="idm45823020919632"><h2>オプション</h2><span class="original">
<title>Options</title>
</span><p><span class="original">
<application>droplang</application> accepts the following command line arguments:
</span><span class="application">droplang</span>は、下記のコマンドライン引数を受け付けます。
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="replaceable"><code>langname</code></em></span></dt><dd><p><span class="original">
Specifies the name of the procedural language to be removed.
(This name is lower-cased.)
</span>削除する手続き言語の名前を指定します。
(名前は小文字です。)
</p></dd><dt><span class="term"><code class="option">[<span class="optional">-d</span>] <em class="replaceable"><code>dbname</code></em></code><br /></span><span class="term"><code class="option">[<span class="optional">--dbname=</span>]<em class="replaceable"><code>dbname</code></em></code></span></dt><dd><p><span class="original">
Specifies from which database the language should be removed.
The default is to use the database with the same name as the
current system user.
</span>どのデータベースから言語を削除するのかを指定します。
デフォルトでは、現在のシステムユーザ名と同じ名前のデータベースが使用されます。
</p></dd><dt><span class="term"><code class="option">-e</code><br /></span><span class="term"><code class="option">--echo</code></span></dt><dd><p><span class="original">
Display SQL commands as they are executed.
</span>実行されるSQLコマンドを表示します。
</p></dd><dt><span class="term"><code class="option">-l</code><br /></span><span class="term"><code class="option">--list</code></span></dt><dd><p><span class="original">
Show a list of already installed languages in the target database.
</span>対象データベース内に既にインストールされている言語のリストを表示します。
</p></dd><dt><span class="term"><code class="option">-V</code><br /></span><span class="term"><code class="option">--version</code></span></dt><dd><p><span class="original">
Print the <application>droplang</application> version and exit.
</span><span class="application">droplang</span>のバージョンを表示し、終了します。
</p></dd><dt><span class="term"><code class="option">-?</code><br /></span><span class="term"><code class="option">--help</code></span></dt><dd><p><span class="original">
Show help about <application>droplang</application> command line
arguments, and exit.
</span><span class="application">droplang</span>のコマンドライン引数の使用方法を表示し、終了します。
</p></dd></dl></div><p>
</p><p><span class="original">
<application>droplang</application> also accepts
the following command line arguments for connection parameters:
</span>また、<span class="application">droplang</span>では接続引数として下記のコマンドライン引数を使用できます。
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="option">-h <em class="replaceable"><code>host</code></em></code><br /></span><span class="term"><code class="option">--host=<em class="replaceable"><code>host</code></em></code></span></dt><dd><p><span class="original">
Specifies the host name of the machine on which the
server
is running. If host begins with a slash, it is used
as the directory for the Unix domain socket.
</span>サーバが稼働しているマシンのホスト名を指定します。
ホスト名がスラッシュから始まる場合、Unixドメインソケット用のディレクトリとして使用されます。
</p></dd><dt><span class="term"><code class="option">-p <em class="replaceable"><code>port</code></em></code><br /></span><span class="term"><code class="option">--port=<em class="replaceable"><code>port</code></em></code></span></dt><dd><p><span class="original">
Specifies the Internet TCP/IP port or local Unix domain socket file
extension on which the server
is listening for connections.
</span>サーバが接続を監視するインターネットTCP/IPポートもしくはローカルのUnixドメインソケットのファイル拡張子を指定します。
</p></dd><dt><span class="term"><code class="option">-U <em class="replaceable"><code>username</code></em></code><br /></span><span class="term"><code class="option">--username=<em class="replaceable"><code>username</code></em></code></span></dt><dd><p><span class="original">
User name to connect as.
</span>接続するためのユーザ名を指定します。
</p></dd><dt><span class="term"><code class="option">-w</code><br /></span><span class="term"><code class="option">--no-password</code></span></dt><dd><p><span class="original">
Never issue a password prompt. If the server requires
password authentication and a password is not available by
other means such as a <filename>.pgpass</filename> file, the
connection attempt will fail. This option can be useful in
batch jobs and scripts where no user is present to enter a
password.
</span>パスワードの入力を促しません。
サーバがパスワード認証を必要とし、かつ、<code class="filename">.pgpass</code>ファイルなどの他の方法が利用できない場合、接続試行は失敗します。
バッチジョブやスクリプトなどパスワードを入力するユーザが存在しない場合にこのオプションは有用かもしれません。
</p></dd><dt><span class="term"><code class="option">-W</code><br /></span><span class="term"><code class="option">--password</code></span></dt><dd><p><span class="original">
Force <application>droplang</application> to prompt for a
password before connecting to a database.
</span>データベースに接続する前に、<span class="application">droplang</span>は強制的にパスワード入力を促します。
</p><p><span class="original">
This option is never essential, since
<application>droplang</application> will automatically prompt
for a password if the server demands password authentication.
However, <application>droplang</application> will waste a
connection attempt finding out that the server wants a password.
In some cases it is worth typing <option>-W</> to avoid the extra
connection attempt.
</span>サーバがパスワード認証を要求する場合<span class="application">droplang</span>は自動的にパスワード入力を促しますので、これが重要になることはありません。
しかし、<span class="application">droplang</span>は、サーバにパスワードが必要かどうかを判断するための接続試行を無駄に行います。
こうした余計な接続試行を防ぐために<code class="option">-W</code>の入力が有意となる場合もあります。
</p></dd></dl></div><p>
</p></div><div class="refsect1" id="idm45823020886352"><h2>環境</h2><span class="original">
<title>Environment</title>
</span><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="envar">PGDATABASE</code><br /></span><span class="term"><code class="envar">PGHOST</code><br /></span><span class="term"><code class="envar">PGPORT</code><br /></span><span class="term"><code class="envar">PGUSER</code></span></dt><dd><p><span class="original">
Default connection parameters
</span>デフォルトの接続パラメータです。
</p></dd></dl></div><p><span class="original">
This utility, like most other <productname>PostgreSQL</> utilities,
also uses the environment variables supported by <application>libpq</>
(see <xref linkend="libpq-envars">).
</span>また、このユーティリティは、他のほとんどの<span class="productname">PostgreSQL</span>ユーティリティと同様、<span class="application">libpq</span>でサポートされる環境変数を使用します(<a class="xref" href="libpq-envars.html" title="32.14. 環境変数">32.14. 環境変数</a>を参照してください)。
</p></div><div class="refsect1" id="idm45823020880352"><h2>診断</h2><span class="original">
<title>Diagnostics</title>
</span><p><span class="original">
Most error messages are self-explanatory. If not, run
<application>droplang</application> with the <option>&#045;&#045;echo</option>
option and see under the respective <acronym>SQL</acronym> command
for details. Also, any default connection settings and environment
variables used by the <application>libpq</application> front-end
library will apply.
</span>ほとんどのエラーメッセージは、読めば理解できるものとなっています。
エラーメッセージを見ても問題が解決しない場合は、<code class="option">--echo</code>オプションを付けて<span class="application">droplang</span>を実行し、詳細については、対応する<acronym class="acronym">SQL</acronym>コマンドを参照してください。
また、<span class="application">libpq</span>フロントエンドライブラリで使用されるデフォルトの接続設定や環境変数も適用されます。
</p></div><div class="refsect1" id="idm45823020876304"><h2>注釈</h2><span class="original">
<title>Notes</title>
</span><p><span class="original">
Use <xref linkend="app-createlang"> to add a language.
</span>言語の追加には<a class="xref" href="app-createlang.html" title="createlang"><span class="refentrytitle"><span class="application">createlang</span></span></a>を使用してください。
</p></div><div class="refsect1" id="idm45823020874480"><h2>例</h2><span class="original">
<title>Examples</title>
</span><p><span class="original">
To remove the language <literal>pltcl</literal>:
</span><code class="literal">pltcl</code>言語を削除するには下記のコマンドを実行します。
</p><pre class="screen"><code class="prompt">$ </code><strong class="userinput"><code>droplang pltcl dbname</code></strong></pre></div><div class="refsect1" id="idm45823020871232"><h2>関連項目</h2><span class="original">
<title>See Also</title>
</span><span class="simplelist"><a class="xref" href="app-createlang.html" title="createlang"><span class="refentrytitle"><span class="application">createlang</span></span></a>, <a class="xref" href="sql-dropextension.html" title="DROP EXTENSION"><span class="refentrytitle">DROP EXTENSION</span></a>, <a class="xref" href="sql-droplanguage.html" title="DROP LANGUAGE"><span class="refentrytitle">DROP LANGUAGE</span></a></span></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="app-dropdb.html">前へ</a> </td><td width="20%" align="center"><a accesskey="u" href="reference-client.html">上へ</a></td><td width="40%" align="right"> <a accesskey="n" href="app-dropuser.html">次へ</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="application">dropdb</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">ホーム</a></td><td width="40%" align="right" valign="top"> <span class="application">dropuser</span></td></tr></table></div></body></html>