PostgreSQL/PL/pgSQLが使用可能かどうか調べる方法
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../../)
* PL/pgSQLが使用可能かどうか確認する [#i6adbcc8]
PL/pgSQLが使用可能かどうか確認する手順を以下に記します。
#contents
* インストールされている言語を確認する [#sbcb3e3d]
[[pg_language>https://www.postgresql.jp/document/9.4/html...
以下のSQLによりpg_languageカタログを確認します。
select * from pg_language;
* select * from pg_language 実行例 [#r8f6ea49]
以下にPostgreSQLに接続し、pg_languageをselectした時の出力...
$ psql -U postgres -h localhost postgres
Password for user postgres:
psql (9.5.4, server 9.2.17)
Type "help" for help.
postgres=# select * from pg_language;
lanname | lanowner | lanispl | lanpltrusted | lanplcal...
----------+----------+---------+--------------+---------...
internal | 10 | f | f | ...
c | 10 | f | f | ...
sql | 10 | f | t | ...
plpgsql | 10 | t | t | ...
(4 rows)
''plpgsql''があるのが確認できますので、使用可能であること...
以上、PL/pgSQLが使用可能かどうかを確認する方法でした。
#htmlinsertpcsp(db-btm.html,db-sp.html)
終了行:
#navi(../../)
* PL/pgSQLが使用可能かどうか確認する [#i6adbcc8]
PL/pgSQLが使用可能かどうか確認する手順を以下に記します。
#contents
* インストールされている言語を確認する [#sbcb3e3d]
[[pg_language>https://www.postgresql.jp/document/9.4/html...
以下のSQLによりpg_languageカタログを確認します。
select * from pg_language;
* select * from pg_language 実行例 [#r8f6ea49]
以下にPostgreSQLに接続し、pg_languageをselectした時の出力...
$ psql -U postgres -h localhost postgres
Password for user postgres:
psql (9.5.4, server 9.2.17)
Type "help" for help.
postgres=# select * from pg_language;
lanname | lanowner | lanispl | lanpltrusted | lanplcal...
----------+----------+---------+--------------+---------...
internal | 10 | f | f | ...
c | 10 | f | f | ...
sql | 10 | f | t | ...
plpgsql | 10 | t | t | ...
(4 rows)
''plpgsql''があるのが確認できますので、使用可能であること...
以上、PL/pgSQLが使用可能かどうかを確認する方法でした。
#htmlinsertpcsp(db-btm.html,db-sp.html)
ページ名: