[pgsql-jp: 35817] Re: 階層問い合わせについて
天野 義祐
amano @ kscom.co.jp
2005年 8月 10日 (水) 09:04:41 JST
あまのです。
新井さんレスありがとうございます。
> なので、対象DBにインストールしてあげれば大丈夫だと思います。
>
> psql -U postgres [対象DB] < tablefunc.sql
>
> # 私の環境でPostgreSQL7.4.8でもできることが確認できました。
次の手順で実行しました。
1.postgresユーザになる
su postgres
2.PostgreSQL7.4.8を解凍したパスに異動
cd /usr/local/src/postgresql-7.4.8/contrib/tablefunc/sql
※tablefunc.sqlがあることを確認
3.ファンクションのインストール
psql -U postgres [対象DB] < tablefunc.sql
インストールの結果は
「
・
・
ERROR: function connectby("unknown", "unknown", "unknown", "unknown",
"unknown", integer, "unknown") does not exist
HINT: No function matches the given name and argument types. You may need
to
add explicit type casts.
ERROR: function connectby("unknown", "unknown", "unknown", "unknown",
"unknown", integer) does not exist
HINT: No function matches the given name and argument types. You may need
to
add explicit type casts.
ERROR: relation "connectby_int" already exists
・
・
」
というメッセージが大量に出力されます。
PostgreSQLをインストールする際は
configure --enable-multibyte=EUC-JP
を実行しています。
configureで他にも何か設定しないといけないのでしょうか?
pgsql-jp メーリングリストの案内